ProgramID- 9249
SkillRack
Print Integers - Right to X

The program must accept N unique integers and an integer X as the input. The program must print all the integers right to the integer X (inclusive of X) as the output.
Note: The integer X is always present in the N integers.

Boundary Condition(s):
2 <= N <= 100
1 <= Each integer value, X <= 1000

Example Input/Output 1:
Input:
6
20 35 10 44 99 18
44

Output:
44 99 18

Example Input/Output 2:
Input:
9
14 52 98 74 56 32 10 85 94
94

Output:
94


Max Execution Time Limit: 1000 millisecs