#include #define rep(i, ss, ee) for (int i = ss; i < ee; ++i) using namespace std; void solve() { int ans = 31; string a, b; cin >> a >> b; if (a == "Sun" or a == "Sat") { ans++; if (b == "Sun" or b == "Sat") ans++; } cout << "8/" << ans << endl; } int main() { cin.tie(0); ios::sync_with_stdio(false); solve(); getchar(); }