Problem with input


#1

Can anyone tell me that what type of input it is given here…because in python it’s not working by considering input as a list of lists or list of tuples