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