#include<iostream> using namespace std; int main() { int a,i,cnt=0; cin>>a; for(i=1;i<=a;i++) if(a%i==0) cout<<i<<" ",cnt++; cout<<"\n "<<cnt; }