// div2 A #include <stdio.h> int main(){ int i,j,n,T; scanf("%d",&T); while(T--){ scanf("%d",&n); if(n>=180||n<=0){ printf("NO\n"); continue; } if (360%(180-n)==0) printf("YES\n"); else printf("NO\n"); } return 0; } // div2 B #include<stdio.h> int x[100005]; int main(){ // freopen("input.txt","r",stdin); int n,i; scanf("%d",&n); int sum=0; for(i=0;i<n;i++) scanf("%d",&x[i]); for(i=n-2;i>=0;i--) if(x[i]>x[i+1]) break; printf("%d\n",i+1); return 0; }