#include <bits/stdc++.h>
using namespace std;
const double EPS = 1e-9;
const double pi = acos(-1);
const long long int INF = 1e18;
const int inf = 1e9;
const int MOD = 1e9 + 7;
const int nax = 1000000 + 10;
int n, arr[nax];
int main() {
  ios::sync_with_stdio(0);
  cin >> n;
  if (n % 10 == 0) {
    cout << n;
    return 0;
  }
  if (n <= 5)
    cout << 0;
  else {
    int div = (n + 10 - 1) / 10;
    int ans = 10 * div;
    int rem = (n % 10);
    if (rem <= 5) ans -= 10;
    cout << ans;
  }
  return 0;
}
