let rec l n=Printf.printf"%d "n;l[|n/2;n*3+n/(n-1)|].(n mod 2);;l(read_int())