#include <bits/stdc++.h>
using namespace std;
vector<int> mas;
void rub(int) {}
int main() {
  ifstream cinf("in.in");
  ofstream coutf("out.out");
  int n;
  cin >> n;
  if (n % 10 > 5) {
    cout << n + 10 - n % 10;
  } else {
    cout << n - n % 10;
  }
  return 0;
}
