/*#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("Hello world!\n");
return 0;
}
*/
/*#include <stdio.h>
int main ()
{
int a,b,d,c=0;
scanf(" %d",&b);
for(a=0; a<b; a++){
scanf("%d",&d);
if(d%2==0){
c=c+1;
}
}
printf("%d",c);
return 0;
}
*/
/*#include <stdio.h>
int main ()
{
int a,b,c,n,d;
scanf("%d %d %d %d",&a,&b,&c,&n);
for(d=1; d<n; d++){
a=a*b+c;
}
printf("%d",a);
return 0;
}
*/
/*#include <stdio.h>
int main ()
{
int n,a,sum=0;
scanf("%d",&n);
for(a=0; a<n; a=a+10){
sum=sum+1;
}
printf("%d",sum);
return 0;
}
6
1 2 3 6
5
1 5
10
1 2 5 10
*/
/*#include<stdio.h>
int main ()
{
int a,n,max=0,b;
scanf("%d",&n);
for(a=1; a<=n; a++){
scanf("%d",&b);
if(b>max){
max=b;
}
}
printf("%d",max);
return 0;
}
*/
/*#include <stdio.h>
int main ()
{
int n,a,b=0;
scanf("%d",&n);
for(a=1; a<=n;a++){
if(n%a==0){
printf("%d ",a);
}
}
return 0;
}
*/
/*#include <stdio.h>
int main ()
{
int a,b,s=0;
scanf("%d",&a);
for(b=1; b<=a; b++)
{
if(a%b==0)
{
s=s+1;
}
}
printf(s<=2 ? "prime" :"not prime");
return 0;
}
*/
#include <stdio.h>
int main ()
{
int n,k,sum=1,d;
scanf("%d %d",&n, &k);
for(d=1; d)
}