#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int x = n % 10;
  if (x > 5) {
    x = 10 - x;
    n += x;
  } else {
    n -= x;
  }
  cout << n << endl;
  return 0;
}
