while 1:print pow(*map(int,raw_input().split()+[10]))