#include <bits/stdc++.h>
using namespace std;
const int SZ = 1000010;
const int INF = 1e9 + 10;
const int mod = 1e9 + 7;
long long read() {
  long long n = 0;
  char a = getchar();
  bool flag = 0;
  while (a > '9' || a < '0') {
    if (a == '-') flag = 1;
    a = getchar();
  }
  while (a >= '0' && a <= '9') n = n * 10 + a - '0', a = getchar();
  if (flag) n = -n;
  return n;
}
int main() {
  long long n = read();
  long long ans;
  if (n % 10 <= 5)
    ans = n / 10 * 10;
  else
    ans = n / 10 * 10 + 10;
  cout << ans;
  return 0;
}
