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; i--) { v = (v * v) % m; if(b.charAt(i) == '1') { ret = (ret * v) % m; } } return ret; } }