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