#include <bits/stdc++.h>
int main() {
  long n, p = 0;
  scanf("%ld", &n);
  if (n % 10 == 0)
    printf("%ld", n);
  else if (n % 10 > 5)
    printf("%ld", n = n + (10 - n % 10));
  else
    printf("%ld", n = n - (n % 10));
}
