#P4038. Game, Set and Match

Game, Set and Match

Description

Input

Output

Source