#include <bits/stdc++.h>
using namespace std;
const long long MX = 2e5 + 100, INF = 1e18, INF2 = -1e18, D = 1e9 + 7;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long n;
  cin >> n;
  long long k = n % 10;
  if (k <= 5)
    cout << n - k;
  else
    cout << n + (10 - k);
  return 0;
}
