#include <cstddef>
template<int Index, typename Tpl>
std::size_t CalcInterleaveByteOffset(const Tpl &t)
{
std::size_t prevOffset = CalcInterleaveByteOffset<Index - 1>(t);
return prevOffset + sizeof(Tpl);
}
template<typename Tpl>
std::size_t CalcInterleaveByteOffset<0, Tpl>(const Tpl &t)
{
return 0;
}
int main() {return 0;}
I2luY2x1ZGUgPGNzdGRkZWY+CgogICAgdGVtcGxhdGU8aW50IEluZGV4LCB0eXBlbmFtZSBUcGw+CiAgICBzdGQ6OnNpemVfdCBDYWxjSW50ZXJsZWF2ZUJ5dGVPZmZzZXQoY29uc3QgVHBsICZ0KQogICAgewogICAgICAgIHN0ZDo6c2l6ZV90IHByZXZPZmZzZXQgPSBDYWxjSW50ZXJsZWF2ZUJ5dGVPZmZzZXQ8SW5kZXggLSAxPih0KTsKICAgICAgICByZXR1cm4gcHJldk9mZnNldCArIHNpemVvZihUcGwpOwogICAgfQogICAgCiAgICB0ZW1wbGF0ZTx0eXBlbmFtZSBUcGw+CiAgICBzdGQ6OnNpemVfdCBDYWxjSW50ZXJsZWF2ZUJ5dGVPZmZzZXQ8MCwgVHBsPihjb25zdCBUcGwgJnQpCiAgICB7CiAgICAgICAgcmV0dXJuIDA7CiAgICB9CgppbnQgbWFpbigpIHtyZXR1cm4gMDt9