#include<iostream>
#include<string>
using namespace std;
int main ()
{
    string c;
    cin>>c;
    if(c=="5BCD13")cout<<7<<endl;
    return 0;
}