#include using namespace std; #define REP(i,a) for(int i = 0; i < (a); i++) #define ALL(a) (a).begin(),(a).end() typedef long long ll; typedef pair P; const int INF = 1e9; const int MOD = 1e9 + 7; signed main(){ string s1,s2; cin >> s1 >> s2; if(s1 == "Sat" || s1 == "Sun"){ s1 = "S"; } if(s2 == "Sat" || s2 == "Sun"){ s2 = "S"; } if(s1 == "S" && s2 != "S"){ cout << "8/32" << endl; }else if(s1 == "S" && s2 == "S"){ cout << "8/33" << endl; }else{ cout << "8/31" << endl; } }