A tree with n nodes numbered from 1 to n is represented by
the parent array t, where t[i] is the parent of node i, and
t[i] = 0 means that node i is the root of the tree.
An additional natural number x with 1 <= x <= n is also read. Print
the path from node x to the root, starting with x and ending with
the root, following edges upward.