B2043
AnnaQ
·
·
个人记录
思路
## 代码
```
#include<bits/stdc++.h>
using namespace std;
int n,f;
int main(void)
{
cin >> n;
if(n % 3 == 0)
{
cout << "3 ";
f = 1;
}
if(n % 5 == 0)
{
cout << "5 ";
f = 1;
}
if(n % 7 == 0)
{
cout << "7 ";
f = 1;
}
if(!f)
{
cout << n << endl;
}
return 0;
}
```