/** * author: TakeruOkuyama * created: 2020-04-09 14:53:46 **/ #include #define rep(i, n) for(int i = 0; i < (n); i++) using namespace std; using ll = long long; using P = pair; int main(){ string S1, S2; cin >> S1 >> S2; if((S1 == "Sat" || S1 == "Sun") && (S2 == "Sat" || S2 == "Sun")){ cout << "8/33" << endl; }else if(S1 == "Sat" || S1 == "Sun"){ cout << "8/32" << endl; }else{ cout << "8/31" << endl; } return 0;} /** **/