uses crt;
var n,i,t,dem:integer;
begin
clrscr;
readln(n);
for i:=1 to n do
if n mod i=0 then write(i:4);
writeln;
dem:=0;
t:=0;
for i:=1 to n do
if n mod i=0 then
begin
dem:=dem+1;
t:=t+i;
end;
writeln(dem);
writeln(t);
if (t=2*n) then writeln('Day la so hoan hao')
else writeln('Khong la so hoan hao');
readln;
end.