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