#include <bits/stdc++.h>
int main() {
  int n;
  while (scanf("%d", &n) == 1) {
    int a = n - n % 10;
    int b = n + 10 - n % 10;
    if (n - a > b - n)
      printf("%d\n", b);
    else
      printf("%d\n", a);
  }
  return 0;
}
