#include using namespace std; string s,t; int main () { cin >> s >> t; if(s[0] == t[0]) cout << "8/33" << endl; else if(s[0] == 'S') cout << "8/32" << endl; else cout << "8/31" << endl; return 0; }