## 28574: Triangle War

[提交][状态][讨论版][数据上传:][下载FPS1元][添加到购物车][下载测试数据1元][155kb]

## 样例输入

4
6
2 4
4 5
5 9
3 6
2 5
3 5
7
2 4
4 5
5 9
3 6
2 5
3 5
7 8
6
1 2
2 3
1 3
2 4
2 5
4 5
10
1 2
2 5
3 6
5 8
4 7
6 10
2 4
4 5
4 8
7 8


## 样例输出

Game 1: B wins.
Game 2: A wins.
Game 3: A wins.
Game 4: B wins.


[提交][状态]