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