// p03_02.cpp: How many numbers read from the keyboard are multiples of
// 2, 3, and 5?
#include <iostream>
using namespace std;

int main() {
int x, n2 =0, n3 = 0, n5 = 0;
cout << "Enter some integers, followed by a "
        "nonumeric character:\n";
while (cin >> x) {
 if (x % 2 == 0) n2++;
 if (x % 3 == 0) n3++;
 if (x % 5 == 0) n5++;
}
cout << n2 << " multiples of 2\n";
cout << n3 << " multiples of 3\n";
cout << n5 << " multiples of 5\n";
return 0;
}
