#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  long long n;
  cin >> n;
  long long p = n % 10;
  if (p == 0) {
    cout << n << endl;
  } else {
    if (p > 5) {
      int k = 10 - p;
      cout << n + k << endl;
    } else {
      cout << n - p << endl;
    }
  }
}
