#include <bits/stdc++.h>
using namespace std;
int main() {
  int a;
  cin >> a;
  if (a - (a / 10) * 10 > 5)
    cout << (a / 10) * 10 + 10;
  else
    cout << (a / 10) * 10;
  cin.get();
  cin.get();
  return 0;
}
