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