#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, x;
  bool flag = 0;
  cin >> n;
  x = n;
  for (int i = 1; i <= 5; i++) {
    if (n % 10 == 0) {
      flag = 0;
      break;
    }
    if (x % 10 == 0) {
      flag = 1;
      break;
    }
    n++;
    x--;
  }
  if (flag == 0)
    cout << n << endl;
  else
    cout << x << endl;
  return 0;
}
