#include using namespace std; using Int = long long; template inline void chmin(T1 &a,T2 b){if(a>b) a=b;} template inline void chmax(T1 &a,T2 b){if(a>a>>b>>c; Int ans=1e9; for(Int i=0;i<=a;i++){ for(Int j=0;j<=b;j++){ for(Int k=1;k<=i+j*10;k++){ Int x=pay(i,j,k)+(a-i)+(b-j); if(x==c) chmin(ans,k); } } } auto NG=[](){cout<<"Impossible"<a+10*b) NG(); cout<