It is a well known fact that a number is divisible by if and only if the alternating sum of its digits is equal to modulo . For example, is a multiple of , since .
Given a number that consists of digits from -, can you rearrange the digits to create a number that is divisible by ?
Since the number might be quite large, you are given integers . There are digits i in the number, for all i.
输入格式
The first line of the input gives the number of test cases, . lines follow. Each line contains the nine integers .
输出格式
For each test case, output one line containing Case #x: y, where x is the test case number (starting from ) and y is YES if the digits can be rearranged to create a multiple of , and NO otherwise.