SP9458 GHOSTS - Ghosts having fun

Description

Ghost are living in big castle with K rooms. As they have around few hundred years and very tired, they decided to buy teleports. Every teleport can work only in one way ( to prevent collision ). Ghosts have decided which teleports they want to build and in which order they should be built. King of ghosts, Bob, asked you to check list of teleports and decide which of them do not build. He don't want ghosts having fun in infinite ride with teleports.

Input Format

In first line - number K

Output Format

Print teleports which should not be built. End test case with 0 0