There is a drinking game where players count upward from 0 in turn. Each number is written in binary and spoken one digit at a time from the most significant digit.
For instance, 0 to 7 in binary are 0, 1, 10, 11, 100, 101, 110, 111, so the spoken digits in order are 0, 1, 1, 0, 1, 1, 1, 0, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1.
One player wants to know in advance the digits for the turns that fall to that player. Write a program that reads the number of players and the position of the player and outputs the five digits the player will speak.