The first line of input contains three integersand
, where
is the length of sequence
is the length of sequence , and the elements of both sequences are bit strings with
bits.
Each of the nextlines contains a hexadecimal representation of
as a string of length
. The strings consist only of hexadecimal digits (
and
).
Then, each of the nextabove.lines contains a hexadecimal representation of
in the same format as
Outputlines with a single integer on each line, where the integer on the
th line is
.