import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); long sum = 0; int x = scan.nextInt(); int N = scan.nextInt(); int m = 1000003; for(int i=0; i 0) { if(a % 2 == 1) { ret = ret * v % m; } v = v * v % m; a >>>= 1; } return ret; } }