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