#include #include using namespace std; int main() { ifstream in("pooh.in"); if(!in) { cout<<"Cannot open File!"<>numberOfPooh; const int size=numberOfPooh; __int64 *arr = new __int64 [size]; int *counts = new int [size]; for(int i=0; i>sum; arr[sum]+=sum; counts[sum]++; } __int64 max=0; int weigth=99999; int positionNumber=0; for(int i=0; i=max) { if(counts[i]