A. Counterfeit Money
time limit per test
4.5 seconds
memory limit per test
1024 megabytes
input
standard input
output
standard output
Example
Input
2
123456789
593825856
Output
456 NO
624 YES