#include <bits/stdc++.h>
using namespace std;
map<string, long long int> month;
void Month() {
  month["January"] = 1, month["February"] = 2, month["March"] = 3,
  month["April"] = 4, month["May"] = 5, month["June"] = 6;
  month["July"] = 7, month["August"] = 8, month["September"] = 9,
  month["October"] = 10, month["November"] = 11, month["December"] = 12;
}
long long int arr[1000000];
long long int arr2[1000000];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long int n;
  cin >> n;
  if (n % 10 == 0) {
    cout << n << endl;
  } else {
    if (n % 10 <= 5) {
      if (n <= 5) {
        cout << 0 << endl;
        return 0;
      }
      n /= 10;
      cout << n << 0 << endl;
    } else {
      n /= 10;
      n++;
      cout << n << 0 << endl;
    }
  }
  return 0;
}
