#include <iostream>
#include <string>
using namespace std;
int main() {
string s = "2123dog";
int n = stoi(s.substr(0, 1), NULL);
int n2 = stoi(s.substr(1, n), NULL);
int n3 = stoi(s.substr(1 + n, 2 + n), NULL);
string resto = s.substr(2 + n);
cout << n << " - " << n2 << " - " << n3 << " - " << resto;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CiAgICBzdHJpbmcgcyA9ICIyMTIzZG9nIjsKICAgIGludCBuID0gc3RvaShzLnN1YnN0cigwLCAxKSwgTlVMTCk7CiAgICBpbnQgbjIgPSBzdG9pKHMuc3Vic3RyKDEsIG4pLCBOVUxMKTsKICAgIGludCBuMyA9IHN0b2kocy5zdWJzdHIoMSArIG4sIDIgKyBuKSwgTlVMTCk7CiAgICBzdHJpbmcgcmVzdG8gPSBzLnN1YnN0cigyICsgbik7CiAgICBjb3V0IDw8IG4gPDwgIiAtICIgPDwgbjIgPDwgIiAtICIgPDwgbjMgPDwgIiAtICIgPDwgcmVzdG87CiAgICByZXR1cm4gMDsKfQ==