SP7249 PERFUME - Perfume

Description

One of the largest perfume shops is making perfumes by mixing fragrant

Input Format

The first line contains T

Output Format

For each mixture query print "Yes" if the new mixture can be created from the already existent ones or "No" otherwise. Print a blank line between test cases.