#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++) { cout << hit->first << " " << hit->second << endl; } }