/*
*PAT IO-02 整数四则运算
*2015.7.30
*作者:flx413
*/ #include<stdio.h>
int main()
{
int a[], sum;
float average;
scanf("%d%d%d%d", &a[], &a[], &a[], &a[]);
sum = a[] + a[] + a[] + a[];
average = sum / 4.0;
printf("Sum = %d; Average = %.1f", sum, average);
return ;
}