#include<iostream> #include<math.h> using namespace std; double round(double a){ if(a * 100 - floor(a * 100) >= 0.5){ a = (a * 100 + 1) / 100; } return floor(a * 100) / 100; } int main(){ double m ; double total = 0; //int count; int i = 1; while(i <= 12){ cin>>m; total += m; i++; } double average; average = total / 12; average = round(average); cout<<"$"<<average<<endl; }