#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 = 1;
}
++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+PSBjdXIpCgkJewoJCQljdXIgPSBjOwoJCQl0bXBFbmQgPSBwb3M7CgkJCSsrdG1wTGVuZ3RoOwoJCX0KCQllbHNlCgkJewoJCQlpZiAodG1wTGVuZ3RoID4gbGVuZ3RoKQoJCQl7CgkJCQlsZW5ndGggPSB0bXBMZW5ndGg7CgkJCQllbmQgPSB0bXBFbmQ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