#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  int ctr1, ctr2, n1 = n, n2 = n;
  for (ctr1 = 0; n1 % 10 != 0; ctr1++) n1--;
  for (ctr2 = 0; n2 % 10 != 0; ctr2++) n2++;
  if (ctr1 <= ctr2)
    cout << n1 << endl;
  else
    cout << n2 << endl;
  return 0;
}
