for hooray_counter in range(1, 3):
  for hip_counter in range(1, 0):
    print('Hip')
  print('Hooray!')

for hooray_counter in range(1, 3):
  for hip_counter in range(1, 4):
    print('Hip')
    print('Hooray!')

for hooray_counter in range(1, 3):
  for hip_counter in range(1, 4):
    print('Hip')
print('Hooray!')