#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int x;
  cin >> n;
  x = n;
  while ((n % 10) != 0 && (x % 10) != 0) {
    n--;
    x++;
  }
  if (n % 10 == 0)
    cout << n << endl;
  else
    cout << x << endl;
  return 0;
}
