#include <iostream>
#include <vector>
using namespace std;
void ConvertLong(string n,long&);
int main()
{
string a="1234585";
long value=0;
ConvertLong(a,value);
cout<<value<<":"<<value+1<<endl;
return 0;
}
void ConvertLong(string n,long& value)
{
string::size_type index=0;
for(;index<n.size();index++)
{
char m='0';
char p='9';
if(n[index]>m&&n[index]<p)
{
long temp=n[index]-48;
value=value*10+temp;
}
}
}