uses crt;
var p,n:integer;beginp:=1;write('N=');read(n);while n>0 do beginp:=p*(n mod 10);n:=n div 10;end;writeln('p=',p);end.
uses crt;
var p,n:integer;
begin
p:=1;
write('N=');
read(n);
while n>0 do begin
p:=p*(n mod 10);
n:=n div 10;
end;
writeln('p=',p);
end.