#line 2 "/home/bayashi/dev/byslib/core/stdlib.hpp" #ifndef LOCAL #define NDEBUG #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include namespace bys { using std::array, std::vector, std::string, std::set, std::map, std::pair; using std::cin, std::cout, std::endl; using std::min, std::max, std::sort, std::reverse, std::abs, std::pow; // alias using ll = long long int; using ld = long double; using Pa = pair; using Pall = pair; template using uset = std::unordered_set; template using umap = std::unordered_map; } // namespace bys #line 3 "/home/bayashi/dev/byslib/core/const.hpp" namespace bys { constexpr int MOD = 998244353; constexpr int MOD7 = 1000000007; constexpr int INF = std::numeric_limits::max() / 2; constexpr ll LINF = std::numeric_limits::max() / 2; } // namespace bys #line 3 "/home/bayashi/dev/byslib/core/io.hpp" namespace bys { // pair template std::istream& operator>>(std::istream& is, std::pair& p) { return is >> p.first >> p.second; } template std::ostream& operator<<(std::ostream& os, const std::pair& p) { return os << p.first << " " << p.second; } // STL container struct is_container_impl { template static auto check(T&& obj) -> decltype(obj.begin(), obj.end(), std::true_type{}); template static auto check(...) -> std::false_type; }; template class is_container : public decltype(is_container_impl::check(std::declval())) {}; template ::value && !std::is_same::value && !std::is_same::value, std::nullptr_t>::type = nullptr> std::ostream& operator<<(std::ostream& os, const C& container) noexcept { if (container.empty()) return os; std::for_each(std::begin(container), std::prev(std::end(container)), [&](auto e) { os << e << ' '; }); return os << *std::prev(std::end(container)); } template ::value && !std::is_same::value && !std::is_same::value, std::nullptr_t>::type = nullptr> std::istream& operator>>(std::istream& is, C& container) { std::for_each(std::begin(container), std::end(container), [&](auto&& e) { is >> e; }); return is; } // I/O helper //! @brief 任意の型を1つ template inline T input() { T n; cin >> n; return n; } //! @brief 任意の型がn要素のvector template inline vector input(int n) { vector res(n); cin >> res; return res; } //! @brief 任意の型がn行m列のvector template inline vector> input(int n, int m) { vector res(n, vector(m)); cin >> res; return res; } //! @brief 任意の型をN個 受け取りは構造化束縛で template inline std::array input() { std::array res; cin >> res; return res; } //! @brief 2つ以上の異なる型 受け取りは構造化束縛で template std::tuple input() { std::tuple res; std::apply([](auto&... e) { (cin >> ... >> e); }, res); return res; } //! @brief 標準入力から代入 template void cinto(Ts&... args) { (cin >> ... >> args); } //! @brief pythonのprintっぽい挙動をする struct Print { std::ostream& os; string sep = " ", end = "\n"; Print(std::ostream& os) : os(os) {} ~Print() { os << std::flush; } void operator()() { os << end; } template void operator()(const T& a) { os << a << end; } //! @brief 空白区切りで出力 template void operator()(const T& a, const Ts&... b) { os << a; (os << ... << (os << sep, b)); os << end; } //! @brief 出力後flush インタラクティブ問題用 template void send(const Ts&... a) { operator()(a...); os << std::flush; } } print(std::cout), debug(std::cerr); //! @brief cin高速化など inline void fastio() { cin.tie(nullptr); std::ios::sync_with_stdio(false); cout << std::fixed << std::setprecision(11); std::cerr << std::boolalpha; } } // namespace bys #line 3 "/home/bayashi/dev/byslib/core/macro.hpp" // clang-format off #ifdef LOCAL //! @brief デバッグ用出力 ジャッジ上では何もしない。 #define DEBUG(...) debug("[debug] line:", __LINE__, "\t", __VA_ARGS__) #else #define DEBUG(...) #endif //! @brief printしてreturnする。 #define EXIT(...) { print(__VA_ARGS__); return; } // clang-format on #line 3 "/home/bayashi/dev/byslib/core/solver.hpp" namespace bys { struct Solver { int IT = 1; Solver() { fastio(); } void solve(); void solve(int rep) { for (; IT <= rep; ++IT) solve(); } }; } // namespace bys #line 2 "7060/main.cpp" namespace bys { void Solver::solve() { auto [n, s] = input(); if (s < 25 || s > 29 * n) { print("No"); } else { print("Yes"); } } } // namespace bys int main() { bys::Solver solver; solver.solve(/* bys::input() */); return 0; }