#include using namespace std; typedef unsigned long long ull; typedef long long ll; int main(){ string s, t=""; cin >> s; reverse(s.begin(), s.end()); for(int i=0; i0 && i%3==0) t+=','; t+=s[i]; } reverse(t.begin(), t.end()); cout << t << endl; return 0; }