#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  if (n % 10 == 0) {
  } else if (n % 10 < 5)
    n = (n / 10) * 10;
  else
    n = (n / 10) * 10 + 10;
  cout << n << endl;
}
