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