program raf105;
uses robot;
begin
task('if5');
if (wallfromdown) or (wallfromup)
then begin left; paint; right; right; paint; left;
end;
if (wallfromleft) or (wallfromright)
then begin up; paint; down; down; paint; up;
end;
end.
if6program raf105;
uses robot;
begin
task('if6');
up;
if cellispainted
then begin down; down; paint; end
else begin down; down;
if cellispainted
then begin up; up; paint; end
else begin up; left;
if cellispainted
then begin right; right; paint; end
else paint;
end;
end;
end.
if7program raf105;
uses robot;
begin
task('if7');
if wallfromright and wallfromdown
then begin up; left; paint; end;
if wallfromleft and wallfromdown
then begin up; right; paint; end;
if wallfromup and wallfromleft
then begin right; down; paint; end;
if wallfromup and wallfromright
then begin down; left; paint; end
end.
s = int(input())
for i in range(1,s):
if s % i == 0:
print(i,end=" ")
Ввод/Вывод:23436
1 2 3 4 6 7 9 12 14 18 21 27 28 31 36 42 54 62 63 84 93 108 124 126 186 189 217 252 279 372 378 434 558 651 756 837 868 1116 1 302 1674 1953 2604 3348 3906 5859 7812 11718