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