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