#include <iostream>
#include <string>
using namespace std;
int main() {
string a;
cin>>a;
cout<<a.length()-a.find(":")-1;
}
#include <iostream>
#include <string>
using namespace std;
int main() {
string a;
cin>>a;
cout<<a.length()-a.find(":")-1;
}