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