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