#include <iostream>
using namespace std;
#include <iostream>
int count_args() {
return 0;
}
template<typename T, typename... Vs>
int count_args(T _, Vs... vs) {
return 1+count_args(vs...);
}
template<int N,typename... Vs>
bool is_arg_divisible(Vs... vs) {
return count_args(vs...) % N == 0;
}
int main() {
std::cout << is_arg_divisible<3>() << std::endl;
std::cout << is_arg_divisible<3>(1) << std::endl;
std::cout << is_arg_divisible<3>(1, 2) << std::endl;
std::cout << is_arg_divisible<3>(1, 2, 3) << std::endl;
std::cout << is_arg_divisible<3>(1, 2, 3, 4) << std::endl;
std::cout << is_arg_divisible<3>(1, 2, 3, 4, 5) << std::endl;
std::cout << is_arg_divisible<3>(1, "", 3, '4', 5, 6) << std::endl;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKI2luY2x1ZGUgPGlvc3RyZWFtPgoKaW50IGNvdW50X2FyZ3MoKSB7CiAgICByZXR1cm4gMDsKfQoKdGVtcGxhdGU8dHlwZW5hbWUgVCwgdHlwZW5hbWUuLi4gVnM+CmludCBjb3VudF9hcmdzKFQgXywgVnMuLi4gdnMpIHsKICByZXR1cm4gMStjb3VudF9hcmdzKHZzLi4uKTsKfQoKdGVtcGxhdGU8aW50IE4sdHlwZW5hbWUuLi4gVnM+CmJvb2wgaXNfYXJnX2RpdmlzaWJsZShWcy4uLiB2cykgewoJcmV0dXJuIGNvdW50X2FyZ3ModnMuLi4pICUgTiA9PSAwOwp9CgppbnQgbWFpbigpIHsKICAgIHN0ZDo6Y291dCA8PCBpc19hcmdfZGl2aXNpYmxlPDM+KCkgICAgICAgICAgICAgICAgICAgIDw8IHN0ZDo6ZW5kbDsKICAgIHN0ZDo6Y291dCA8PCBpc19hcmdfZGl2aXNpYmxlPDM+KDEpICAgICAgICAgICAgICAgICAgIDw8IHN0ZDo6ZW5kbDsKICAgIHN0ZDo6Y291dCA8PCBpc19hcmdfZGl2aXNpYmxlPDM+KDEsIDIpICAgICAgICAgICAgICAgIDw8I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