#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, ans1, ans2;
  cin >> n;
  int dif = 10 - (n % 10);
  ans1 = n - (n % 10);
  ans2 = n + (10 - n % 10);
  if (abs(n - ans1) < abs(n - ans2)) {
    cout << ans1 << endl;
  } else
    cout << ans2 << endl;
}
