#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  if (n % 10 <= 5) {
    n /= 10;
    n *= 10;
  } else {
    int ch = 10 - (n % 10);
    n += ch;
  }
  cout << n;
  return 0;
}
