#include <bits/stdc++.h>
using namespace std;
const int maxn = 1010;
int main() {
  long long n;
  while (~scanf("%I64d", &n)) {
    long long x = n % 10;
    if (x <= 5)
      printf("%I64d\n", n - x);
    else
      printf("%I64d\n", n - x + 10);
  }
  return 0;
}
