#include #include typedef long long int ll; #define FOR(i,a,b) for(ll i=(a);i<(b);i++) #define REP(i,n) for(ll i=0;i P; struct edge { ll to, cost; }; #define VMAX 100000 template inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; } template inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; } ll ans=0; bool F=false; // Nafmo template 2022.09.04 // Generated by 2.12.0 https://github.com/kyuridenamida/atcoder-tools int main(){ ll N; cin >> N; assert(0 <= N && N <= 1000000000); if( N < 100 ){ cout << 0 << endl; }else if( N < 600){ cout << 1 << endl; }else{ cout << 2 + (N - 600) / 500 <