#include<iostream>
using namespace std;
int main()
{
int h,e,p,d=1;
cin>>h>>e>>p;
while(h<e) {
if(d%3==0 && h%10!=9 && d%10!=0)
h=h+h/3;
else if(h%10!=9 && d%10!=0)
h=h+h/10;
d=d+1;
}
if(d>p*11)
cout<<"unsalable";
else
cout<<d;
}