#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, c = 0, k = 0;
  cin >> n;
  if (n % 10 < 10 - n % 10)
    cout << n - n % 10;
  else
    cout << n + (10 - n % 10);
  return 0;
}
