两支球队在游戏世界锦标赛中相遇。一些科学家认为这个游戏是世界上最具智力挑战性的游戏。你会得到两个字符串,描述团队在最终战斗中的行动。弄清楚谁成为冠军。
Two teams meet in The Game World Championship. Some scientists consider this game to be the most intellectually challenging game in the world. You are given two strings describing the teams' actions in the final battle. Figure out who became the champion.
[]()[]8< 8<[]()8<
TEAM 2 WINS
8<8<() []8<[]
TIE
输入包含两个长度相等的字符串(介于 2 到 20 个字符之间,包括 <> 到 <> 个字符)。每行描述一个团队的操作。
如果第一个团队获胜,则输出“TEAM 1 获胜”,如果第二个团队获胜,则输出“TEAM 2 获胜”,如果出现平局,则输出“TIE”。
Input
[]()[]8< 8<[]()8<
TEAM 2 WINS
8<8<() []8<[]
TIE
8<8<()
[]8<[]
TIE