#include <bits/stdc++.h> using namespace std; int main(){ int jie,hie,jh=0,jg=0,hg=0,hh=0; while(cin>>jie&&jie!=0){ jh+=jie; jg++; } while(cin>>hie&&hie!=0){ hh+=jie; hg++; } printf("%.1f ",jh*1.0/jg); printf("%.1f",hh*1.0/hg); } /************************************************************** Problem: 1319 User: wangyiyang Language: C++ Result: Wrong Answer ****************************************************************/