#include <iostream>
int main()
{
unsigned long long num;
std::cin >> num;
unsigned int end = 0;
unsigned int start = 0;
unsigned int tmpEnd = 0;
unsigned int tmpStart = 0;
unsigned int length = 0;
unsigned int tmpLength = 0;
unsigned int pos = 0;
unsigned int cur = 9; // 0
while(num)
{
unsigned int c = num % 10;
if (c <= cur) // if (c >= cur)
{
cur = c;
tmpEnd = pos;
++tmpLength;
}
else if (tmpLength > length)
{
length = tmpLength;
end = tmpEnd;
start = tmpStart;
tmpStart = pos;
cur = 9; // 0
tmpLength = 0;
}
++pos;
num = num/10;
}
if (length < 2)
{
std::cout << "NO!!!" << std::endl;
}
else
{
std::cout << pos - end << ":" << pos - start << ":" << length << std::endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKaW50IG1haW4oKQp7Cgl1bnNpZ25lZCBsb25nIGxvbmcgbnVtOwoJCglzdGQ6OmNpbiA+PiBudW07CgoJdW5zaWduZWQgaW50IGVuZCA9IDA7Cgl1bnNpZ25lZCBpbnQgc3RhcnQgPSAwOwoKCXVuc2lnbmVkIGludCB0bXBFbmQgPSAwOwoJdW5zaWduZWQgaW50IHRtcFN0YXJ0ID0gMDsKCgl1bnNpZ25lZCBpbnQgbGVuZ3RoID0gMDsKCXVuc2lnbmVkIGludCB0bXBMZW5ndGggPSAwOwoKCXVuc2lnbmVkIGludCBwb3MgPSAwOwoJdW5zaWduZWQgaW50IGN1ciA9IDk7IC8vIDAKCgl3aGlsZShudW0pCgl7CgkJdW5zaWduZWQgaW50IGMgPSBudW0gJSAxMDsKCgkJaWYgKGMgPD0gY3VyKSAvLyBpZiAoYyA+PSBjdXIpCgkJewoJCQljdXIgPSBjOwoJCQl0bXBFbmQgPSBwb3M7CgkJCSsrdG1wTGVuZ3RoOwoJCX0KCQllbHNlIGlmICh0bXBMZW5ndGggPiBsZW5ndGgpCgkJewoJCQlsZW5ndGggPSB0bXBMZW5ndGg7CgkJCWVuZCA9IHRtcEVuZDsKCQkJc3RhcnQgPSB0bX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