You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
416 B
25 lines
416 B
#include <bits/stdc++.h>
|
|
|
|
using namespace std;
|
|
|
|
int main() {
|
|
int n;
|
|
cin >> n;
|
|
|
|
bool found = false;
|
|
if (n % 3 == 0) {
|
|
found = true;
|
|
cout << 3 << " ";
|
|
}
|
|
if (n % 5 == 0) {
|
|
found = true;
|
|
cout << 5 << " ";
|
|
}
|
|
if (n % 7 == 0) {
|
|
found = true;
|
|
cout << 7 << " ";
|
|
}
|
|
if (!found) cout << "n" << endl;
|
|
return 0;
|
|
}
|