from "field" import FIELD_SIZE_IN_BITS; import "utils/pack/bool/unpack"; import "utils/casts/u16_from_bits"; def main(field input) -> u16 { bool[FIELD_SIZE_IN_BITS] bits = unpack(input); return u16_from_bits(bits[FIELD_SIZE_IN_BITS-16..]); }