R=range C,Y=map(int,input().split()) Y//=100 b=[5,10,20,50,100,11**9] a=[Y%b[i+1]//b[i]*b[i]for i in R(5)] c=d=e=Y%5 for n in [0,0]: for i in R(4,-1,-1): if dC:d+=(C-d+b[i]-1)//b[i] else:d+=a[i] b[2],b[3]=b[3],b[2] print("can't exchange"if Y