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