/* * @uni_kakurenbo * https://github.com/uni-kakurenbo/competitive-programming-workspace * * CC0 1.0 http://creativecommons.org/publicdomain/zero/1.0/deed.ja */ /* #language C++ 23 GCC */ // #define DEBUGGER_ENABLED #include /* [begin]: snippet/aliases.hpp */ #include #include #include #include #include /* [begin]: macro/internal/compatibility.hpp */ #include /* [begin]: adaptor/string.hpp */ #include /* [begin]: adaptor/internal/advanced_container.hpp */ #include /* [begin]: snippet/internal/base.hpp */ #define until(...) while(!(__VA_ARGS__)) #define CONTINUE(...) { __VA_ARGS__; continue; } #define BREAK(...) { __VA_ARGS__; break; } #define ALL(x) std::ranges::begin((x)),std::ranges::end((x)) #define RALL(x) std::ranges::rbegin((x)),std::ranges::rend((x)) #define $F first #define $S second /* [end]: snippet/internal/base.hpp*/ /* [begin]: snippet/iterations.hpp */ #include /* [begin]: macro/overload.hpp */ #define $OVERLOAD2(arg0, arg1, cmd, ...) cmd #define $OVERLOAD3(arg0, arg1, arg2, cmd, ...) cmd #define $OVERLOAD4(arg0, arg1, arg2, arg3, cmd, ...) cmd #define $OVERLOAD5(arg0, arg1, arg2, arg3, arg4, cmd, ...) cmd #define $OVERLOAD6(arg0, arg1, arg2, arg3, arg4, arg5, cmd, ...) cmd /* [end]: macro/overload.hpp*/ /* [begin]: macro/basic.hpp */ #define TO_STRING_AUX(x) #x #define TO_STRING(x) TO_STRING_AUX(x) #define CONCAT_AUX(x, y) x##y #define CONCAT(x, y) CONCAT_AUX(x, y) #define UNPAREN_AUX(...) __VA_ARGS__ #define UNPAREN(...) __VA_ARGS__ /* [end]: macro/basic.hpp*/ #define LOOP(n) REPI(CONCAT(_$, __COUNTER__), n) #define REPI(i,n) for(std::remove_cvref_t i=0, CONCAT(i, $)=(n); i,std::remove_cvref_t> i=(l), CONCAT(i, $)=(r); i,std::remove_cvref_t,std::remove_cvref_t> i=(l), CONCAT(i, $)=(r); i=0;) #define REPB(i,l,r) for(std::common_type_t,std::remove_cvref_t> i=(r), CONCAT(i, $)=(l); --i>=CONCAT(i, $);) #define REPRS(i,l,r,s) for(std::common_type_t,std::remove_cvref_t,std::remove_cvref_t> i=(l)+((r)-(l)-1)/(s)*(s), CONCAT(i, $)=(l); i>=CONCAT(i, $); (i-=(s))) #define REP(...) $OVERLOAD4(__VA_ARGS__, REPIS, REPF, REPI, LOOP)(__VA_ARGS__) #define REPD(...) $OVERLOAD4(__VA_ARGS__, REPRS, REPB, REPR)(__VA_ARGS__) #define FORO(i,n) for(int i=0, CONCAT(i, $)=static_cast(n); i<=CONCAT(i, $); ++i) #define FORI(i,l,r) for(std::common_type_t,std::remove_cvref_t> i=(l), CONCAT(i, $)=(r); i<=CONCAT(i, $); ++i) #define FORIS(i,l,r,s) for(std::common_type_t,std::remove_cvref_t,std::remove_cvref_t> i=(l), CONCAT(i, $)=(r); i<=CONCAT(i, $); i+=(s)) #define FORRO(i,n) for(auto i=(n); i>=0; --i) #define FORR(i,l,r) for(std::common_type_t,std::remove_cvref_t> i=(r), CONCAT(i, $)=(l); i>=CONCAT(i, $); --i) #define FORRS(i,l,r,s) for(std::common_type_t,std::remove_cvref_t,std::remove_cvref_t> i=(l)+((r)-(l))/(s)*(s), CONCAT(i, $)=(l); i>=CONCAT(i, $); i-=(s)) #define FOR(...) $OVERLOAD4(__VA_ARGS__, FORIS, FORI, FORO)(__VA_ARGS__) #define FORD(...) $OVERLOAD4(__VA_ARGS__, FORRS, FORR, FORRO)(__VA_ARGS__) #define ITR1(e0,v) for(const auto &e0 : (v)) #define ITRP1(e0,v) for(auto e0 : (v)) #define ITRR1(e0,v) for(auto &e0 : (v)) #define ITR2(e0,e1,v) for(const auto [e0, e1] : (v)) #define ITRP2(e0,e1,v) for(auto [e0, e1] : (v)) #define ITRR2(e0,e1,v) for(auto &[e0, e1] : (v)) #define ITR3(e0,e1,e2,v) for(const auto [e0, e1, e2] : (v)) #define ITRP3(e0,e1,e2,v) for(auto [e0, e1, e2] : (v)) #define ITRR3(e0,e1,e2,v) for(auto &[e0, e1, e2] : (v)) #define ITR4(e0,e1,e2,e3,v) for(const auto [e0, e1, e2, e3] : (v)) #define ITRP4(e0,e1,e2,e3,v) for(auto [e0, e1, e2, e3] : (v)) #define ITRR4(e0,e1,e2,e3,v) for(auto &[e0, e1, e2, e3] : (v)) #define ITR5(e0,e1,e2,e3,e4,v) for(const auto [e0, e1, e2, e3, e4] : (v)) #define ITRP5(e0,e1,e2,e3,e4,v) for(auto [e0, e1, e2, e3, e4] : (v)) #define ITRR5(e0,e1,e2,e3,e4,v) for(auto &[e0, e1, e2, e3, e4] : (v)) #define ITR(...) $OVERLOAD6(__VA_ARGS__, ITR5, ITR4, ITR3, ITR2, ITR1)(__VA_ARGS__) #define ITRP(...) $OVERLOAD6(__VA_ARGS__, ITRP5, ITRP4, ITRP3, ITRP2, ITRP1)(__VA_ARGS__) #define ITRR(...) $OVERLOAD6(__VA_ARGS__, ITRR5, ITRR4, ITRR3, ITRR2, ITRR1)(__VA_ARGS__) /* [end]: snippet/iterations.hpp*/ /* [begin]: internal/dev_env.hpp */ #ifdef LOCAL_JUDGE inline constexpr bool DEV_ENV = true; inline constexpr bool NO_EXCEPT = false; #else inline constexpr bool DEV_ENV = false; inline constexpr bool NO_EXCEPT = true; #endif #if __cplusplus >= 202100L #define CPP20 true #define CPP23 true #elif __cplusplus >= 202002L #define CPP20 true #define CPP23 false #else #define CPP20 false #define CPP23 false #endif /* [end]: internal/dev_env.hpp*/ /* [begin]: internal/types.hpp */ namespace uni { namespace internal { using size_t = std::int64_t; using int128_t = __int128_t; using uint128_t = __uint128_t; } } /* [end]: internal/types.hpp*/ /* [begin]: internal/concepts.hpp */ #include #include #include namespace uni { namespace internal { template concept convertibel_range = std::convertible_to, T>; template concept item_or_convertible_range = std::convertible_to || convertibel_range; template concept available = requires () { typename Structure; }; template< template class Structure, class... TemplateParameters > concept available_with = available>; template concept arithmetic = std::is_arithmetic_v; template concept floating_point = std::is_floating_point_v; template concept pointer = std::is_pointer_v; template concept structural = std::is_class_v; template concept has_double_digits_of = (std::numeric_limits::digits == 2 * std::numeric_limits::digits); template concept has_more_digits_than = (std::numeric_limits::digits > std::numeric_limits::digits); template concept has_or_more_digits_than = (std::numeric_limits::digits >= std::numeric_limits::digits); template concept has_static_zero = requires { T::zero; }; template concept has_static_one = requires { T::one; }; template concept weakly_bitand_calcurable = requires (L lhs, R rhs) { lhs & rhs; }; template concept weakly_bitor_calcurable = requires (L lhs, R rhs) { lhs | rhs; }; template concept weakly_bitxor_calcurable = requires (L lhs, R rhs) { lhs ^ rhs; }; template concept weakly_addable = requires (L lhs, R rhs) { lhs + rhs; }; template concept weakly_subtractable = requires (L lhs, R rhs) { lhs - rhs; }; template concept weakly_multipliable = requires (L lhs, R rhs) { lhs * rhs; }; template concept weakly_divisable = requires (L lhs, R rhs) { lhs / rhs; }; template concept weakly_remainder_calculable = requires (L lhs, R rhs) { lhs % rhs; }; template concept weakly_bitand_assignable = requires (L lhs, R rhs) { lhs += rhs; }; template concept weakly_bitor_assignable = requires (L lhs, R rhs) { lhs |= rhs; }; template concept weakly_bitxor_assignable = requires (L lhs, R rhs) { lhs ^= rhs; }; template concept weakly_addition_assignable = requires (L lhs, R rhs) { lhs += rhs; }; template concept weakly_subtraction_assignable = requires (L lhs, R rhs) { lhs -= rhs; }; template concept weakly_multipliation_assignalbe = requires (L lhs, R rhs) { lhs *= rhs; }; template concept weakly_division_assignable = requires (L lhs, R rhs) { lhs /= rhs; }; template concept weakly_remainder_assignable = requires (L lhs, R rhs) { lhs /= rhs; }; template concept bitand_calculable = weakly_bitand_calcurable && weakly_bitand_calcurable&, L, R>, R> && weakly_bitand_calcurable&, L, R>> && weakly_bitand_calcurable&, L, R>, std::invoke_result_t&, L, R>>; template concept bitor_calculable = weakly_bitor_calcurable && weakly_bitor_calcurable&, L, R>, R> && weakly_bitor_calcurable&, L, R>> && weakly_bitor_calcurable&, L, R>, std::invoke_result_t&, L, R>>; template concept bitxor_calculable = weakly_bitxor_calcurable && weakly_bitxor_calcurable&, L, R>, R> && weakly_bitxor_calcurable&, L, R>> && weakly_bitxor_calcurable&, L, R>, std::invoke_result_t&, L, R>>; template concept addable = weakly_addable && weakly_addable&, L, R>, R> && weakly_addable&, L, R>> && weakly_addable&, L, R>, std::invoke_result_t&, L, R>>; template concept subtractable = weakly_subtractable && weakly_subtractable&, L, R>, R> && weakly_subtractable&, L, R>> && weakly_subtractable&, L, R>, std::invoke_result_t&, L, R>>; template concept multipliable = weakly_multipliable && weakly_multipliable&, L, R>, R> && weakly_multipliable&, L, R>> && weakly_multipliable&, L, R>, std::invoke_result_t&, L, R>>; template concept divisable = weakly_divisable && weakly_divisable&, L, R>, R> && weakly_divisable&, L, R>> && weakly_divisable&, L, R>, std::invoke_result_t&, L, R>>; template concept remainder_calculable = weakly_remainder_calculable && weakly_remainder_calculable&, L, R>, R> && weakly_remainder_calculable&, L, R>> && weakly_remainder_calculable&, L, R>, std::invoke_result_t&, L, R>>; template concept bitand_assignable = weakly_bitand_assignable && weakly_bitand_assignable&, L, R>, R> && weakly_bitand_assignable&, L, R>> && weakly_bitand_assignable&, L, R>, std::invoke_result_t&, L, R>>; template concept bitor_assignable = weakly_bitor_calcurable && weakly_bitor_calcurable&, L, R>, R> && weakly_bitor_calcurable&, L, R>> && weakly_bitor_calcurable&, L, R>, std::invoke_result_t&, L, R>>; template concept bitxor_assignable = weakly_bitxor_calcurable && weakly_bitxor_calcurable&, L, R>, R> && weakly_bitxor_calcurable&, L, R>> && weakly_bitxor_calcurable&, L, R>, std::invoke_result_t&, L, R>>; template concept addition_assignable = weakly_addition_assignable && weakly_addition_assignable&, L, R>>, R> && weakly_addition_assignable&, L, R>> && weakly_addition_assignable&, L, R>>, std::invoke_result_t&, L, R>>; template concept subtraction_assignable = weakly_subtraction_assignable && weakly_subtraction_assignable&, L, R>>, R> && weakly_subtraction_assignable&, L, R>> && weakly_subtraction_assignable&, L, R>>, std::invoke_result_t&, L, R>>; template concept multipliation_assignalbe = weakly_multipliation_assignalbe && weakly_multipliation_assignalbe&, L, R>>, R> && weakly_multipliation_assignalbe&, L, R>> && weakly_multipliation_assignalbe&, L, R>>, std::invoke_result_t&, L, R>>; template concept division_assignable = weakly_division_assignable && weakly_division_assignable&, L, R>>, R> && weakly_division_assignable&, L, R>> && weakly_division_assignable&, L, R>>, std::invoke_result_t&, L, R>>; template concept remainder_assignable = weakly_remainder_assignable && weakly_remainder_assignable&, L, R>>, R> && weakly_remainder_assignable&, L, R>> && weakly_remainder_assignable&, L, R>>, std::invoke_result_t&, L, R>>; template concept weakly_incrementable = std::movable && requires (T v) { { ++v } -> std::same_as; v++; }; template concept weakly_decrementable = std::movable && requires (T v) { { --v } -> std::same_as; v--; }; template concept incrementable = std::regular && weakly_incrementable && requires (T v) { { v++ } -> std::same_as; }; template concept decrementable = std::regular && weakly_decrementable && requires (T v) { { v-- } -> std::same_as; }; template concept weakly_arithmetic_operable = weakly_addable && weakly_subtractable && weakly_multipliable && weakly_divisable; template concept weakly_arithmetic_operation_assignable = weakly_addition_assignable && weakly_subtraction_assignable && weakly_multipliation_assignalbe && weakly_division_assignable; template concept arithmetic_operable = weakly_arithmetic_operable && addable && subtractable && multipliable && divisable; template concept arithmetic_operation_assignable = weakly_arithmetic_operation_assignable && addition_assignable && subtraction_assignable && multipliation_assignalbe && division_assignable; template concept unary_addable = requires (T v) { { +v } -> std::same_as; }; template concept unary_subtractable = requires (T v) { { -v } -> std::same_as; }; template concept numeric = std::regular && arithmetic_operable && arithmetic_operation_assignable && weakly_incrementable && unary_addable && unary_subtractable; } } /* [end]: internal/concepts.hpp*/ /* [begin]: numeric/internal/mod.hpp */ namespace uni { template requires internal::remainder_calculable && internal::subtractable && internal::unary_subtractable inline T mod(T x, const R& r) noexcept(NO_EXCEPT) { if(x >= 0) return x % r; x = -x % r; if(x != 0) x = r - x; return x; } } /* [end]: numeric/internal/mod.hpp*/ /* [begin]: iterable/internal/operation_base.hpp */ #include #include #include /* [begin]: internal/exception.hpp */ namespace uni { namespace internal { template inline constexpr bool EXCEPTION_ON_TYPE = false; template inline constexpr bool EXCEPTION_ON_VALUE = false; } } /* [end]: internal/exception.hpp*/ namespace uni { template S> std::string join(I first, S last, const char* sep = "") noexcept(NO_EXCEPT) { if(first == last) return ""; std::ostringstream res; while(true) { res << *first; std::ranges::advance(first, 1); if(first == last) break; res << sep; } return res.str(); } template std::string join(R&& range, const char* sep = "") noexcept(NO_EXCEPT) { return join(ALL(range), sep); } template> requires std::sentinel_for T sum(I first, I last, const T& base = T()) noexcept(NO_EXCEPT) { return std::accumulate(first, last, base); } template> auto sum(R&& range, T base = T()) noexcept(NO_EXCEPT) { auto&& r = range | std::views::common; return sum(ALL(r), base); } } /* [end]: iterable/internal/operation_base.hpp*/ #define UNI_ADVANCED_CONTAINER_OPERATOR(op_assign, op, concepts) auto& operator op_assign(const value_type& v) noexcept(NO_EXCEPT) requires concepts { if constexpr(concepts) { this->Base::operator op_assign(v); } else { REP(itr, ALL(*this)) *itr op_assign v; } return *this; } auto& operator op_assign(const advanced_container& rhs) noexcept(NO_EXCEPT) requires concepts { if constexpr(concepts) { this->Base::operator op_assign(*rhs._base()); } else { auto itr = std::ranges::begin(*this), rhs_itr = std::ranges::begin(rhs); auto end = std::ranges::end(*this); for(; itr != end; ++itr, ++rhs_itr) { *itr op_assign *rhs_itr; } } return *this; } template requires concepts && (std::convertible_to || std::same_as) friend auto operator op(advanced_container lhs, const T& rhs) noexcept(NO_EXCEPT) { return lhs op_assign rhs; } template requires concepts && std::convertible_to friend auto operator op(const T& lhs, advanced_container rhs) noexcept(NO_EXCEPT) { return advanced_container(rhs.size(), lhs) op_assign rhs; } namespace uni { namespace internal { template struct advanced_container : Base { private: inline Base* _base() noexcept(NO_EXCEPT) { return static_cast(this); } inline const Base* _base() const noexcept(NO_EXCEPT) { return static_cast(this); } public: using Base::Base; advanced_container(const Base& base) : Base(base) {} using size_type = decltype(std::ranges::size(std::declval())); using value_type = Base::value_type; inline auto ssize() const noexcept(NO_EXCEPT) { return std::ranges::ssize(*this->_base()); } inline const auto& operator[](internal::size_t p) const noexcept(NO_EXCEPT) { p = p < 0 ? p + this->size() : p; assert(0 <= p && p < this->ssize()); return this->Base::operator[](p); } inline auto& operator[](internal::size_t p) noexcept(NO_EXCEPT) { p = p < 0 ? p + this->size() : p; assert(0 <= p && p < this->ssize()); return this->Base::operator[](p); } inline auto& fill(const value_type& v) noexcept(NO_EXCEPT) { std::ranges::fill(*this, v); return *this; } inline auto& swap(const size_type i, const size_type j) noexcept(NO_EXCEPT) { std::swap(this->operator[](i), this->operator[](j)); return *this; } inline auto& sort() noexcept(NO_EXCEPT) { std::ranges::sort(*this); return *this; } template inline auto& sort(F&& f) noexcept(NO_EXCEPT) { std::ranges::sort(*this, std::forward(f)); return *this; } inline auto& stable_sort() noexcept(NO_EXCEPT) { std::ranges::stable_sort(*this); return *this; } template inline auto& stable_sort(F&& f) noexcept(NO_EXCEPT) { std::ranges::stable_sort(*this, std::forward(f)); return *this; } inline auto& reverse() noexcept(NO_EXCEPT) { std::ranges::reverse(*this); return *this; } inline auto count(const value_type& v) const noexcept(NO_EXCEPT) { return std::ranges::count(*this, v); } inline auto contains(const value_type& v) const noexcept(NO_EXCEPT) { return this->count(v) > 0; } template inline auto count_if(F&& f) const noexcept(NO_EXCEPT) { return std::ranges::count_if(*this, std::forward(f)); } inline auto& resize(const size_type k) noexcept(NO_EXCEPT) { this->Base::resize(k); return *this; } inline auto& resize(const size_type k, const value_type& v) noexcept(NO_EXCEPT) { this->Base::resize(k, v); return *this; } template inline auto& shuffle(F&& f) noexcept(NO_EXCEPT) { std::ranges::shuffle(*this, std::forward(f)); return *this; } inline auto& unique() noexcept(NO_EXCEPT) { const auto rest = std::ranges::unique(*this); this->erase(ALL(rest)); return *this; } template inline auto binary_search(T&& v) const noexcept(NO_EXCEPT) { return std::ranges::binary_search(*this, std::forward(v)); } template inline auto lower_bound(T&& v) const noexcept(NO_EXCEPT) { return std::ranges::lower_bound(*this, std::forward(v)); } template inline auto upper_bound(T&& v) const noexcept(NO_EXCEPT) { return std::ranges::upper_bound(*this, std::forward(v)); } template inline auto find(T&& v) const noexcept(NO_EXCEPT) { return std::ranges::find(*this, std::forward(v)); } template inline auto index(T&& v) const noexcept(NO_EXCEPT) { return this->find(std::forward(v)) - this->begin(); } inline auto join(const char* sep = "") const noexcept(NO_EXCEPT) { return uni::join(*this, sep); } inline auto sum() const noexcept(NO_EXCEPT) { return uni::sum(*this); } inline auto max() const noexcept(NO_EXCEPT) { return std::ranges::max(*this->_base()); } inline auto min() const noexcept(NO_EXCEPT) { return std::ranges::min(*this); } inline auto begin() noexcept(NO_EXCEPT) { return std::ranges::begin(*this->_base()); } inline auto begin() const noexcept(NO_EXCEPT) { return std::ranges::begin(*this->_base()); } inline auto end() noexcept(NO_EXCEPT) { return std::ranges::end(*this->_base()); } inline auto end() const noexcept(NO_EXCEPT) { return std::ranges::end(*this->_base()); } UNI_ADVANCED_CONTAINER_OPERATOR(+=, +, internal::weakly_addition_assignable) UNI_ADVANCED_CONTAINER_OPERATOR(-=, -, internal::weakly_subtraction_assignable) UNI_ADVANCED_CONTAINER_OPERATOR(*=, *, internal::weakly_multipliation_assignalbe) UNI_ADVANCED_CONTAINER_OPERATOR(/=, /, internal::weakly_division_assignable) UNI_ADVANCED_CONTAINER_OPERATOR(%=, %, internal::weakly_remainder_assignable) UNI_ADVANCED_CONTAINER_OPERATOR(&=, &, internal::weakly_bitand_assignable) UNI_ADVANCED_CONTAINER_OPERATOR(|=, |, internal::weakly_bitor_assignable) UNI_ADVANCED_CONTAINER_OPERATOR(^=, ^, internal::weakly_bitxor_assignable) }; } } #undef UNI_ADVANCED_CONTAINER_OPERATOR /* [end]: adaptor/internal/advanced_container.hpp*/ namespace uni { using string = internal::advanced_container; } namespace std { template<> struct hash { inline auto operator()(const uni::string& key) const noexcept(NO_EXCEPT) { return std::hash{}(static_cast(key)); } }; } /* [end]: adaptor/string.hpp*/ #if __GNUG__ >= 13 # define UNI_CONSTEXPR_STD_STRING constexpr std::string # define UNI_CONSTEXPR_STRING constexpr uni::string #else # define UNI_CONSTEXPR_STD_STRING const std::string # define UNI_CONSTEXPR_STRING const uni::string #endif /* [end]: macro/internal/compatibility.hpp*/ /* [begin]: snippet/internal/types.hpp */ namespace uni { using i16 = std::int16_t; using u16 = std::uint16_t; using i32 = std::int32_t; using u32 = std::uint32_t; using i64 = std::int64_t; using u64 = std::uint64_t; #ifdef __GNUC__ using i128 = __int128_t; using u128 = __uint128_t; using f128 = __float128; #endif using uint = unsigned; using ll = long long; using ull = unsigned long long; using ld = long double; } /* [end]: snippet/internal/types.hpp*/ namespace uni { constexpr char LN = '\n'; constexpr char SPC = ' '; UNI_CONSTEXPR_STRING DIRECTIONS = "URDL"; constexpr std::pair DIRS4[] = { { -1, 0 }, { 0, 1 }, { 1, 0 }, { 0, -1 } }; constexpr std::pair DIRS4P[] = { { -1, 0 }, { 0, 1 }, { 1, 0 }, { 0, -1 }, { 0, 0 } }; constexpr std::pair DIRS8[] = { { -1, 0 }, { -1, 1 }, { 0, 1 }, { 1, 1 }, { 1, 0 }, { 1, -1 }, { 0, -1 }, { -1, -1 } }; constexpr std::pair DIRS8P[] = { { -1, 0 }, { -1, 1 }, { 0, 1 }, { 1, 1 }, { 1, 0 }, { 1, -1 }, { 0, -1 }, { -1, -1 }, { 0, 0 } }; template using spair = std::pair; template using priority_queue_rev = std::priority_queue, std::greater>; } namespace std { using bit_reference = std::vector::reference; bit_reference operator |= (bit_reference a, const bool b) noexcept(NO_EXCEPT) { return a = a | b; } bit_reference operator &= (bit_reference a, const bool b) noexcept(NO_EXCEPT) { return a = a & b; } } /* [end]: snippet/aliases.hpp*/ // #include "adaptor/io.hpp" // #include "template/debug.hpp" void solve(); signed main() { // debug(__cplusplus); int $ = 0; while(true) { // debug_("Case: #" + std::to_string($++)); solve(); } return 0; } /* [begin]: template/warnings.hpp */ #pragma GCC diagnostic warning "-Wshadow=local" /* [end]: template/warnings.hpp*/ void solve() { int a, b; std::cin >> a >> b; std::cout << (a <= b ? "Yes" : "No") << std::endl; }