#include <bits/stdc++.h>
#pragma GCC optimize("omit-frame-pointer")
#pragma GCC optimize("unroll-loops")
const int MAXINT = 2147483640;
const long long MAXLL = 9223372036854775800LL;
const long long MAXN = 1000000;
const double pi = 3.1415926535897932384626433832795;
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  srand(time(0));
  long long n;
  cin >> n;
  if (n % 10 != 0) {
    if (n % 10 >= 6)
      while (n % 10 != 0) n++;
    else
      while (n % 10 != 0) n--;
  }
  cout << n << endl;
  return 0;
}
