Program x;
var
i , x : integer;
Begin
Readln(x);
I:=1;
While I <= x do
If x mod I = 0 then
Writeln(i);
Inc(I);
End;
End.
Program x;
var
i , x : integer;
Begin
Readln(x);
I:=1;
While I <= x do
Begin
If x mod I = 0 then
Writeln(i);
Inc(I);
End;
End.