// Handles only positive exponent. class Power { public static void main(String[] args) { int a = Integer.parseInt(args[0]); int b = Integer.parseInt(args[1]); int c = 1; int pow = 1; while (c <= b) { pow *= a; c++; } System.out.println(pow); } }