#include using namespace std; #define int long long signed main(){ int N; cin>>N; if(N<1000){ cout << N << endl; return 0; } else if(N<1000000){ cout << N/1000 << ',' << N%1000 << endl; return 0; } else if(N<1000000000){ cout << N/1000000 << ',' << N/1000-(N/1000000)*1000 << ',' << N%1000 << endl; return 0; } else{ cout << "1,000,000,000" << endl; } }