#include using namespace std; #define rep(i, n) for(int i = 0; i < (int)(n); i++) int main(){ int N; cin >> N; cout << (N+400)/500 << endl; }