#10050: TLE 怎解決


gama70389 (我是如來佛祖玉皇大帝光是因指定曲溪經特派使者花果山水濂洞小屁...)


import java.util.*;
public class d475 {

                             public static void main(String[] args) {
   Scanner sc = new Scanner(System.in);
        int c = 0;
      while(sc.hasNext()){
        long a = sc.nextLong();
        long b = sc.nextLong();
        c++;
        if(a==0&&b==0){
           System.out.println("All Over. Exceeded "+c+" lines!");
           break; 
        }
         System.out.println(Math.round(Math.pow(a,b)));
     }
   }
}