#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  if (n % 10 == 0) {
    cout << n << endl;
  } else {
    cout << (abs((n / 10 * 10) - n) < abs(n / 10 * 10 + 10 - n)
                 ? n / 10 * 10
                 : n / 10 * 10 + 10)
         << endl;
  }
  return 0;
}
