Joshephus or MamakoDate Sequence EASY by leonid

while 1:n,k=map(int,raw_input().split());a=range(n);exec'a=a[k%n:n]+a;n-=1;print-~a[n],;'*n;print

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top