SP9050 TOHU2 - Tohu again

Description

Tohu was very tired during the preparation for entrance exams at

Input Format

First line : number of tests T

Output Format

Print YES if Ksjuchi might uniquely define symbol that Tohu put forth. Otherwise print NO