#include using namespace std; int main(){ cin.tie(0),ios::sync_with_stdio(false); string s1,s2; cin>>s1>>s2; if((s1=="Sat"s||s1=="Sun"s)&&(s2=="Sat"s||s2=="Sun"s))cout<<"8/33\n"s; else if(s1=="Sat"s||s1=="Sun"s)cout<<"8/32\n"s; else cout<<"8/31\n"s; }