#Lutece1317. Keywords Again

Keywords Again

Migrated from Lutece 1317 Keywords Again

All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.

Description

Do you like the Problem K in Preliminary Contest? Now, this is another Keywords Problem.

Given a generated way:

Start with an empty string SS. Then, choose some position in the string (maybe the very beginning or the very end) and insert PP. We will get a new SS and try to insert it again and again.

For example, PP is abc and SS is empty, after a single step, SS becomes abc. Now Insert PP into SS again, SS may become aabcbc.

Now show you a string QQ, can you tell me if there exists a string TT generated as we mentioned above, and QQ is the substring of TT.

Input

The first line contains a non-empty string PP.

The second line contains a non-empty string QQ.

Both PP and QQ will only contains a to z

1QP1051\leq |Q|\leq |P|\leq 10^5

Output

If there exists a string TT generated as we mentioned above, and QQ is the substring of TT, output POSSIBLE, otherwise output IMPOSSIBLE.

Samples

abcde
bcaab
POSSIBLE
abcde
eabde
IMPOSSIBLE

Resources

The 14th UESTC Programming Contest Final