#include<iostream>
using namespace std;
int T;
long long x;
int main()
{
cin>>T;
while(T--)
{
cin>>x;
bool flag=true;
if(x==2ll || x==3ll || x==5ll || x==6ll || x==11ll || x==14ll || x==8ll) flag=false;
cout<<(flag?"Yes":"No")<<endl;
}
return 0;
}
//102 1 81 21 80+16 96
//1 4 7 9 10 12 13 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
//2 3 5 6 8 11 14
//5 35165 61699 6 78029 99643 2 19862 11 3 68588 63273 14 11 7098 13742 15722 19028

京公网安备 11010502036488号