#include #include #include using namespace std; main() { map histo; map ::iterator hit; double d; while (cin >> d) histo[rint(d)]++; for (hit = histo.begin(); hit != histo.end(); hit++) { d = hit->first; cout << d << " " << histo[d] << endl; } }