package no016; import java.math.BigInteger; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); BigInteger x = new BigInteger(sc.next()); BigInteger MOD = new BigInteger("1000003"); int n = sc.nextInt(); BigInteger ans = BigInteger.ZERO; for(int i=0;i