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