#include using namespace std; signed main() { cin.tie(0)->sync_with_stdio(0); int n; cin >> n; cout << (n - 100 + 499) / 500 << endl; }