program pil_3_28_i(input,output);
var
  number : integer;
	mult : integer;
begin
	write('Input the number : ');
  read(number);
  mult := number mod 10;
  number := number div 10;
  mult := mult * (number mod 10);
  number := number div 10;
  mult := mult * (number mod 10);
  number := number div 10;
  mult := mult * (number mod 10);
  writeLn('Multiplication is ', mult:1);
end.