In fact, it is very simple to draw lots to prepare the same number of paper labels, one of which is written king and the other is written number 1 2 3 4.
Then the king doesn't know what the numbers in everyone's hands are, and then the king can use the requirements at will, such as kissing 1, touching the third thigh on the second, and so on. I don't need to say it below.