/* 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 (size_t i = 0; i < n.size(); i++) { cout << n[i]; if (((n.size() - i - 1) % 3 == 0) && (i - n.size() + 1) != 0) { cout << ","; } } cout << endl; }