#include<bits/stdc++.h> using namespace std; int x; int main() { cin>>x; if(x%3==0&&x%5==0&&x%7==0){ cout<<"3 5 7"; } //if(x%3==0&&x%5==0&&x%7==0){ return 0; }