#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long int n;
  cin >> n;
  int p = (n % 10);
  if (p == 0) {
    cout << n;
    return;
  }
  if (p > 5)
    cout << n + (10 - p);
  else
    cout << n - p;
}
int main() {
  int t;
  t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
