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