#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long t;
  cin >> t;
  if (t % 10 == 0 && t != 0) {
    cout << t << "\n";
    return;
  }
  int x = t % 10;
  if (x <= 5) {
    cout << (t / 10) * 10 << "\n";
    return;
  } else if (x > 5) {
    cout << ((t + 10) / 10) * 10 << "\n";
    return;
  }
}
int main() { solve(); }
