program pe
  implicit none
  integer :: n, a, b
  read(*,*) n
  if (n .eq. 1) then
     write(*,'(a)') "Hello World"
  else
     read(*,*) a
     read(*,*) b
     write(*,'(i0)') a+b
  end if
  stop
end program pe