#include #include #include using namespace std; main() { map histo; double i; double d; while (cin >> d) histo[rint(d)]++; for (i = 0; i <= histo.rbegin()->first; i++) { if (histo[i] > 0) cout << i << " " << histo[i] << endl; } }