Help me in solving PSPP77 problem

My issue

for _ in range(3):
A, B = map(int, input().split())
C = A2 + B3 + (A2 + B3)2 + (A2 + B**3)**3
print(C)

please share explanation of each line. I am very thankful to you.

My code

# Solution as follows

for _ in range(3):
    A, B = map(int, input().split())
    C = A**2 + B**3 + (A**2 + B**3)**2 + (A**2 + B**3)**3
    print(C)

Learning course: Learn Python
Problem Link: CodeChef: Practical coding for everyone

@rinku007
for loop is will run 3 times.
and for each time it will take two inputs A and B
and then we calculate C.
** is power operator.