#include <bits/stdc++.h>
using namespace std;
int main() {
  char c[11];
  while (cin >> c) {
    int n = strlen(c);
    if (n == 0 && c[0] - '0' <= 5) {
      cout << 0 << endl;
      continue;
    }
    int k = n - 1;
    if (c[k] - '0' >= 5) {
      c[k] = '0';
      k--;
      while (c[k] == '9' && k >= 0) {
        c[k] = '0';
        k--;
      }
      if (k == -1)
        cout << "1";
      else {
        c[k] = c[k] + 1;
      }
    } else
      c[k] = '0';
    for (int i = 0; i < n; i++) {
      cout << c[i];
    }
    cout << endl;
  }
  return 0;
}
