2개의 수 x, y를 반복한다. 초기 값은 x 이다.t=yt=x+y-tprint t 를 반복한다여러개의 수를 반복한다. 0부터 n-1 까지t=0print tt=(t+1) mod n 을 반복한다.