Joshephus or MamakoDate Sequence EASY by hallvabo

while 1:m,n=map(int,raw_input().split());_=range(m);exec'm+=n-1;m%=len(_);print-~_.pop(m),;'*m;print

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

download

return to the top page