# 108 - bet
# Nazorat ishi
# 1 - masala
# n sonini kiritamiz:
n = int(input("n = "))
# yig'indini hisoblash uchun:
sum = 0
# n ta qadam uchun sikl:
# ushbu siklda elementlar => [1:n]
for i in range(1, n+1):
# oraliqda har bir sonni kubini hisoblab
# sumga qo'shamiz:
sum += i*i*i
# oynaga ifodani chiqarish uchun:;
if i != n:
print(f"{i}*{i}*{i}", end=" + ")
else:
print(f"{i}*{i}*{i}", end=" = ")
# natijani chiqarish:
print(sum)
# Nazorat ishi
# 1 - masala
# n sonini kiritamiz:
n = int(input("n = "))
# yig'indini hisoblash uchun:
sum = 0
# n ta qadam uchun sikl:
# ushbu siklda elementlar => [1:n]
for i in range(1, n+1):
# oraliqda har bir sonni kubini hisoblab
# sumga qo'shamiz:
sum += i*i*i
# oynaga ifodani chiqarish uchun:;
if i != n:
print(f"{i}*{i}*{i}", end=" + ")
else:
print(f"{i}*{i}*{i}", end=" = ")
# natijani chiqarish:
print(sum)