#include #include #include #include #include #include #include #include #include typedef long double ld; typedef long long ll; const ll INF = (ll)1e18 + 1; const ll MOD = 1e9 + 7; // Split namespace util { std::vector< std::string > split(std::string s, char delimiter) { std::vector< std::string > vs; std::string sub; for (auto c : s) { if (c == delimiter) vs.push_back(sub), sub.clear(); else sub += c; } vs.push_back(sub); return vs; } } // namespace util // Minimum, Maximum template T minimum(T head, T tail) { return std::min(head, tail); } template H minimum(H head, T... tail) { return std::min(head, minimum(tail...)); } template T maximum(T head, T tail) { return std::max(head, tail); } template H maximum(H head, T... tail) { return std::max(head, maximum(tail...)); } // Output template std::ostream& operator << (std::ostream& os, std::pair p) { return os << "(" << p.first << " " << p.second << ")"; } template std::ostream& operator << (std::ostream& os, std::vector< T > v) { for (ll i = 0; i < (ll)v.size(); i++){ os << " [" << i << "]" << v[i]; if (i % 10 == 9) os << std::endl; } //os << v[0]; for (ll i = 1; i < (ll)v.size(); i++){ os << " " << v[i]; } return os; } template std::ostream& operator << (std::ostream& os, std::map< T, S > m) { ll i = 0; for (auto p : m){ os << " [" << i << "]" << p.first << "->" << p.second; i++;} return os; } void print(){ std::cout << std::endl; } template void print(H head) { std::cout << head << std::endl; } template void print(H head, T... tail){ std::cout << head << " ", print(tail...); } int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); std::vector vs(2, ""); std::cin >> vs[0] >> vs[1]; bool judge1 = (vs[0] == "Sat" && vs[1] == "Sun") || (vs[0] == "Sat" && vs[1] == "Sat") || (vs[0] == "Sun" && vs[1] == "Sat") || (vs[0] == "Sun" && vs[1] == "Sun"); bool judge2 = (vs[0] == "Sat" || vs[0] == "Sun") && (vs[1] != "Sat" && vs[1] != "Sun"); if (judge1) print("8/33"); else if (judge2) print("8/32"); else print("8/31"); return 0; }