program aaa;var a,b,d:integer;beginread(a);d:=1;while a> 0 do beginb:=a mod 10;a:=a div 10;d:=d*b;end;writeln(d);end.
program aaa;
var a,b,d:integer;
begin
read(a);
d:=1;
while a> 0 do begin
b:=a mod 10;
a:=a div 10;
d:=d*b;
end;
writeln(d);
end.