Files
HuangHai 1f397eca87 'commit'
2025-08-30 18:35:01 +08:00

25 lines
410 B
C++

#include <bits/stdc++.h>
using namespace std;
int main() {
int a;
cin >> a;
bool f = false;
if (a % 3 == 0) {
cout << 3 << " ";
f = true;
}
if (a % 5 == 0) {
cout << 5 << " ";
f = true;
}
if (a % 7 == 0) {
cout << 7 << " ";
f = true;
}
if (!f) {
cout << "n" << endl;
}
return 0;
}