#include int main() { int i,a,n,sum,ans; while(~scanf("%d",&n)) { for(i = 0,sum = 0; i