/* No.784 「,(カンマ)」 https://yukicoder.me/problems/no/784 */ #include using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); string n; cin >> n; for (int i = 0; i < (int)n.size(); i++) { if ((n.size() - i) % 3 == 0 && i != 0) cout << ','; cout << n[i]; } }