#include <bits/stdc++.h>
using namespace std;
template <typename Arg1>
void __f(const char* name, Arg1&& arg1) {
  cerr << name << " : " << arg1 << std::endl;
}
template <typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args) {
  const char* comma = strchr(names + 1, ',');
  cerr.write(names, comma - names) << " : " << arg1 << " | ";
  __f(comma + 1, args...);
}
bool bit(int n, int i) { return (n >> i) & 1; }
int faltu;
const int mod = 1e9 + 7;
const long long MAX = 4e18;
const long long MIN = -MAX;
const int imax = 2e9 + 100;
int main() {
  time_t t1, t2;
  t1 = clock();
  int N;
  cin >> N;
  int before = -1, after = -1;
  for (int i = N;; i++) {
    if (i % 10 == 0) {
      after = i;
      break;
    }
  }
  for (int i = N;; i--) {
    if (i % 10 == 0) {
      before = i;
      break;
    }
  }
  if (abs(before - N) < abs(after - N)) {
    cout << before << endl;
  } else {
    cout << after << endl;
  }
  t2 = clock();
  cerr << "time taken: " << t2 - t1 << endl;
  return 0;
}
