#include <bits/stdc++.h>
using namespace std;
const int ONE = 1000005;
const int MOD = 1e9 + 7;
int get() {
  int res = 1, Q = 1;
  char c;
  while ((c = getchar()) < 48 || c > 57)
    if (c == '-') Q = -1;
  if (Q) res = c - 48;
  while ((c = getchar()) >= 48 && c <= 57) res = res * 10 + c - 48;
  return res * Q;
}
int main() {
  int n = get();
  int i = 0;
  for (;;) {
    if ((n + i) % 10 == 0) {
      cout << n + i;
      return 0;
    }
    if ((n - i) % 10 == 0) {
      cout << n - i;
      return 0;
    }
    i++;
  }
}
