#include <bits/stdc++.h>
int main() {
  long long int n, temp, r1, p, r3;
  scanf("%lld", &n);
  temp = n;
  r1 = temp % 10;
  if (r1 == 0) {
    printf("%lld\n", n);
  } else if (r1 >= 6 && r1 <= 9) {
    p = 10 - r1;
    printf("%lld\n", n + p);
  } else {
    printf("%lld\n", n - r1);
  }
  return 0;
}
