#include <bits/stdc++.h>
using namespace std;
int n;
int main() {
  cin >> n;
  if (n % 10 == 0)
    cout << n << '\n';
  else {
    if (n % 10 < 5)
      cout << n - n % 10 << '\n';
    else
      cout << n + (10 - n % 10) << '\n';
  }
}
