#include using namespace std; int main(){ int N; long sum = 0; int length = 0; int t; scanf("%d",&N); for(int i=0;i