#include using namespace std; int main() { string s1,s2; int a = 8,b = 31; cin >> s1 >> s2; if(s1 == "Sat" || s1 == "Sun" || s1 == "sat" || s1 == "sun") b++; if(s2 == "Sat" || s2 == "Sun" || s2 == "sat" || s2 == "sun") b++; cout << a << "/" << b; return 0; }