for x in range(1, 45, 10):
  print(x,  x**2, x**3)