global x, y, z; x := read (); y := read (); z := x*y*3; write (z)