#include <bits/stdc++.h>
using namespace std;
long long x[10001], y[10001], n, k, i, d, j, a[22][22], maxx = -1e9, mxpos, m,
                                                        s;
int main() {
  cin >> n;
  if (n % 10 < 5) cout << n - n % 10 << endl;
  if (n % 10 > 5) cout << n + (10 - n % 10) << endl;
  if (n % 10 == 5) cout << n + (10 - n % 10) << endl;
  return 0;
}
