#include<iostream> using namespace std; int main() { double m=100000; int n=0; while(m>=5000) { if(m>50000) m*=(1-0.05); else m-=5000; n++; } cout<<n; return 0; }