#include<stdio.h> #include<math.h> int main() { int n; while(scanf("%d",&n)!= EOF) { int i,j; int count=0,sum=0,count1=0;  ...