#include<stdio.h> int main() { int n,m,i; double sum; scanf("%d",&n); for (i=1;i<=n;i++) { scanf("%d",&m); if(m<=10000) sum+=m; } printf("%.0f %.5f\n",sum,sum/n); return 0; }