#include using namespace std; int main(){ int n; cin>>n; n-=100; cout<<(n+499)/500<