n=int(input("Enter number of time player can flip the card")) play=["Arun","Arya"] di={'P':7,'Q':10,'R':10,'S':5} sumar=0 sumay=0 for i in range(n): print(play[0]+" flip the card") caar=input() noar=int(input()) sumar+=noar*di[caar] print(play[1]+" flip the card") caay=input() noay=int(input()) sumay+=noay*di[caay] print("Total scores ",sumar,sumay) if sumaysumar: print("Arya won the game") else: print("Game tied")