#include #include #include #include #include #include typedef long long int ll; using namespace std; string s,t; bool check(string s){ if(s=="Sun"||s=="Sat"){ return true; } return false; } int main(){ cin >>s>>t; if(check(s)&&check(t)){ cout << "8/33" << endl; } else if(check(s)){ cout << "8/32" << endl; } else{ cout << "8/31" << endl; } }