func main() var n: int :: cui@inputInt() var k: int :: cui@inputInt() var x: int :: 0 for i(1, n) do cui@print("\{x + 50000}\{i = n ?("\n", " ")}") if(i > n - 2 - k) if(x = 0) do x :: 1 elif(x > 0) do x :: -x else do x :: -x + 1 end if end if end for end func