#include using namespace std; typedef long long ll; typedef pair P; #define REP(i,n) for(ll i=0;i> N; if(N<100) cout << 0 << endl; else{ cout << (N+399)/500 << endl; } return 0; }