#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  long long int n;
  cin >> n;
  if (n % 10 == 0) {
    cout << n;
  } else {
    long long int x, y;
    x = n;
    y = n;
    while (x % 10 != 0) {
      x = x + 1;
    }
    while (y % 10 != 0) {
      y = y - 1;
    }
    if (x - n < n - y) {
      cout << x;
    } else {
      cout << y;
    }
  }
  return 0;
}
