#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9 + 7;
using namespace std;
int n;
int main() {
  cin >> n;
  int k1 = 0;
  int x = n;
  while (x % 10 != 0) {
    x++;
    k1++;
  }
  int k2 = 0;
  while (n % 10 != 0) {
    n--;
    k2++;
  }
  if (k1 > k2)
    cout << n;
  else
    cout << x;
  return 0;
}
