Block "Input Number"
Block is used to define the input on which is present a high logic level. The output of block will be the value corresponding to the number of such input. If a high level is not a single input block, the output will be 0. If the high level will be present at several inputs, the output block will be the value corresponding to the output with a high level having the largest number.
In the block editor, you can set the number of inputs.