#include <bits/stdc++.h>
using namespace std;
const int MAXN = 2 * 1e5 + 2;
const int inf = 1e9 + 7;
const string ABC = "abcdefghijklmnopqrstuvwxyz";
const string NUM = "0123456789";
ifstream in("input.txt");
ofstream out("output.txt");
int main() {
  int n;
  cin >> n;
  if (n % 10 >= 5)
    cout << n + (10 - n % 10);
  else
    cout << n - n % 10;
}
