// 再提出. #include <bits/stdc++.h> using namespace std; bool check(string s){ if(s == "Sat" || s == "Sun") return true; return false; } int main(){ // 1. 入力情報取得. string S1, S2; cin >> S1 >> S2; // 2. 8/32, 8/33 を チェック. string ans = "8/31"; if(check(S1) && check(S2)){ ans = "8/33"; }else if(check(S1)){ ans = "8/32"; } // 3. 後処理. cout << ans << endl; return 0; }