#if __INCLUDE_LEVEL__ == 0 #include __BASE_FILE__ void Solve() { int m, d; IN(m, d); if (m > 8 || d >= 22) { OUT(24); } else { OUT(23); } } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); Solve(); } #elif __INCLUDE_LEVEL__ == 1 #include template concept Range = std::ranges::range && !std::convertible_to; template concept Tuple = std::__is_tuple_like::value && !Range; namespace std { istream& operator>>(istream& is, Range auto&& r) { for (auto&& e : r) is >> e; return is; } istream& operator>>(istream& is, Tuple auto&& t) { apply([&](auto&... xs) { (is >> ... >> xs); }, t); return is; } ostream& operator<<(ostream& os, Range auto&& r) { auto sep = ""; for (auto&& e : r) os << exchange(sep, " ") << e; return os; } ostream& operator<<(ostream& os, Tuple auto&& t) { auto sep = ""; apply([&](auto&... xs) { ((os << exchange(sep, " ") << xs), ...); }, t); return os; } } // namespace std using namespace std; #define IN(...) cin >> forward_as_tuple(__VA_ARGS__) #define OUT(...) cout << forward_as_tuple(__VA_ARGS__) << '\n' #endif // __INCLUDE_LEVEL__ == 1