def E(): x=p(0) if"if"==x:a=E();p(0);b=E();p(0);x=[E(),b][a>"s"] return x while 1:p=input().split().pop;print(E())