#include <bits/stdc++.h>
using namespace std;
int n, c, used[1001], cnt = 0, m, g[101][101];
int main() {
  int a;
  cin >> a;
  if (a % 10 >= 5)
    cout << a - a % 10 + 10;
  else
    cout << a - a % 10;
  return 0;
}
