#include <bits/stdc++.h>
using namespace std;
int main() {
  int x = 0, k = 0, i = 0;
  cin >> x;
  for (; k <= 9; k++) {
    if ((x + k) % 10 == 0 && k != 0) {
      break;
    }
  }
  if (k >= 5) {
    k = 10 - k;
    x = x - k;
  } else {
    x += k;
  }
  cout << x;
  return 0;
}
