t,*s=input() while[print(end=t)]:c=s[0];t=str(int(t)+(c>t)-(c