  implicit none
  integer :: D, N

  read(*,*) D, N

  if ( D == 0 ) then
     write(*,'(i0)') N
  else if ( D == 1 ) then
     write(*,'(i0)') 100*N
  else
     write(*,'(i0)') 10000*N
  end if
     
end
