#include<stdio.h> #include<stdbool.h> #include<stdlib.h> #include<string.h> int main(int argc,char const *argv[]){ int i,j; int sum1,sum2,sum3; int n; int len1; int len2; char s[20]; scanf("%d",&n); getchar(); for(i=0;i<n;i++){ gets(s); len1 = strlen(s); len2=len1/2; sum1=0; sum2=0; sum3=0; for(j=0;j<len2;j++){ sum1=sum1*10+s[j]-'0'; } for(j=len2;j<len1;j++){ sum2=sum2*10+s[j]-'0'; } for(j=0;j<len1;j++){ sum3=sum3*10+s[j]-'0'; } if(sum1*sum2!=0){ if(sum3%(sum1*sum2)==0){ printf("Yes "); }else{ printf("No "); } }else{ printf("No "); } } return 0; }