sorry przerzyciłem zły plik wcześniej to jest poprawne
#include
using namespace std;
int main() {
int n;
int tab[10000];
cin>>n;
for(int x=0;x<n;x++)
{
cin>>tab[x];
}
for(int x=0;x<n;x++)
{
if((tab[x]%3!=0||tab[x]==3)&&(tab[x]%2!=0||tab[x]==2)&&tab[x]!=1)
{
cout<<“TAK”<<endl;
}
else
{
cout<<"NIE"<<endl;
}
}
return 0;
}