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