#include <iostream> using namespace std; int main(){ int n; double k; while (cin>>n>>k){ int year = 1; int savings = n; double price = 200; while (savings<price){ savings+=n; price*=(1+k/100); year++; if (year>21) break;//记得一定要加这一句,不然就无限循环了 } if (year<=21){ cout<<year<<endl; } else{ cout<<"Impossible"<<endl; } } }