#include using namespace std; int n,k; string s; int passto; int simurate(int pass,int end){ int ans=0; for(int i=0;i>n>>k; cin>>s; int how=k%n; if(how==0) how=n; int start=simurate(0,how); if(k>n){ int cnt=0; for(int i=0;i