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