#include #include using namespace std; int main(){ string str1, str2; cin >> str1 >> str2; if((str1 == "Sat" && str2 == "Sun") || (str1 == "Sun" && str2 == "Sat")) cout << "8/33\n"; else if( str1 == "Sun" || str1 == "Sat") cout << "8/32\n"; else cout << "8/31\n"; return 0; }