num = int(input("Enter the first n number of cubes: "))

for i in range(1, num+1):
  print(f"{i}**3 = {i**3}", end = ", ")



num = int(input("Enter the first n number of cubes: "))

for i in range(1, num+1):
  print(f"{i}**3 = {i**3}", end = ", ")


