#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long n;
  cin >> n;
  long long sz = log10(n);
  double x = (n * 1.0) / (10);
  long long y = round(x);
  cout << y * 10 << "\n";
  ;
}
signed main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long t = 1;
  while (t--) {
    solve();
  }
}
