program main implicit none integer l,n character*100 dummy read(*,*)l,n,dummy write(*,*)n*8**(l/3-1) end program main