Help me in solving PSPP77 problem

My issue

why do we need to use for loop in this statement ??. In previous problem i used start from A,B=map(int, input().split())

My code

# Click on 'Next' to proceed
for i 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

@sachin1616
Cozz in this problem it is said that u have to take 3 times of input so u will run the loop 3 time and take input each time .