import java.io.PrintWriter; import java.util.Scanner; public class Main { static int mod=1000003; public static void main(String[] args) throws Exception { PrintWriter pw=new PrintWriter(System.out); Scanner sc=new Scanner(System.in); long x=sc.nextLong(); int n=sc.nextInt(); int a; int ans=0; for(int i=0;i