#include <bits/stdc++.h>
using namespace std;
const int MAXN = 1e6 + 10;
const long long inf = 1e15;
const int mod = 1e6;
void faster() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
}
const long long N = 3e5 + 10;
int n, m;
long long a[N];
int main() {
  faster();
  cin >> n;
  if (n % 10 < 10 - (n % 10))
    cout << n - n % 10 << endl;
  else
    cout << n + (10 - (n % 10)) << endl;
}
