#include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define REP(i,m,n) for(int i = m; i < n; i++) #define rep(i,n) REP(i,0,n) #define ALL(a) (a).begin(),(a).end() #define RALL(a) (a).rbegin(),(a).rend() typedef long long LL; template inline void chmax(T & a, T b) { if (a < b) { a = b; } } template inline void chmin(T& a, T b) { if (a > b) { a = b; } } template void print_vector(vector vec) { cout << "[ "; for (int i = 0; i < vec.size(); i++) { cout << vec[i] << " "; } cout << "]" << endl; } template void print_pair_vector(vector > vec) { cout << "[ "; for (int i = 0; i < vec.size(); i++) { cout << "(" << vec[i].first << "," << vec[i].second << ") "; } cout << "]" << endl; } int main(void) { string S_1, S_2; cin >> S_1 >> S_2; if ((S_1 == "Sun" or S_1 == "Sat") and (S_2 == "Sun" or S_2 == "Sat")) { cout << "8/33" << endl; } else if(S_1 == "Sun" or S_1 == "Sat"){ cout << "8/32" << endl; } else { cout << "8/31" << endl; } return 0; }