while 1:a,b,c,d=input();print(a[:a>'0'or'13'>b+c!=c>'0'a+b:]+d)