#include int main(void) { int n,m,a,c[50],i,j,t; scanf("%d%d",&n,&m); for(i=0;i0;j--)c[j]=c[j-1]; c[0]=t; } printf("%d",c[0]); return 0; }