creativity
Source: hackerearth
Difficulty: UNKNOWN_DIFFICULTY

Ed, Edd and Eddy are given an art homework. They have to prepare a banner and print a  single line of  text on it. They can print any text they want. Ed has decided the text that he wants to put on his banner. Lets call it string s1. But he is too lazy to make a new banner all by himself. He borrows an old banner from a friend. But  this banner has some different text already printed on it. Lets call it string s2.  Ed's 'brilliant' mind came up with an idea. He got a pair of scissors and wants to cut the banner at atmost two places so that only the text that  he wants to display is left on a single continuous piece of the banner.

For example, if the string already printed on the banner (i.e. S2) is “i like cartoons” and the string that he wants to take (i.e. S2) is “like”, then he can simply cut the banner before and after “like” and obtain s1.

Another example, if s1 is “hello there” and s2 is “hello hi there”, there is no way Ed can obtain s1. 

Your job is to tell Ed if it is possible to make his banner from the borrowed banner.

Input:

The first line of input contains an integer t- the number of test cases. Each test case consists of two lines. The first line of each test case contains s1, the string that Ed wants to display on his banner. The second line of each test case contains s2, the string that is already there on the banner that he borrowed from his friend. 

Output:

For each test case, output 'possible' if it is possible for Ed to make his banner by cutting in atmost two different places. Output 'not possible' if Ed cannot make the banner.
Remember that Ed wants exactly the same text as string s1 on his banner.

Constraints:

1 ≤ t ≤ 10

1 ≤ Length of s1,s2 ≤1000

s1 and s2 will contain only lower-case alphabets and spaces

SAMPLE INPUT
5
hello
hi hello hi
def
abc def
java
python
c
cplusplus
hellohi
hellotherehi

SAMPLE OUTPUT
possible
possible
not possible
possible
not possible


num=input()
t=int(num)
i=0
while i<t:
	s1=input()
	s2=input()
	j=s2.find(s1);
	if j!=-1:
		print("possible")
	else:
		print("not possible")
	i=i+1


t=int(eval(input()))
running = True
while running:
	str1=input()
	str2=input()
	j=str2.find(str1,0,len(str2))
	if j==-1:
		print("not possible")
	else:
		print("possible")
	t=t-1
	if t==0:
		running=False


def creativity():
	testcases=eval(input())
	container=[]
	for i in range(testcases):
		s1= input()
		s2=input()
		if s1 in s2:
			container.append('possible')
		else:
			container.append('not possible')
	for i in container:
		print(i)


if __name__=='__main__':
	creativity()


'''
# Read input from stdin and provide input before running code

name = raw_input('What is your name?\n')
print 'Hi, %s.' % name
'''
n = int(input())

for i in range(n):
	s1 = input()
	s2 = input()
	if s1 in s2:
		print("possible")
	else:
		print("not possible")


for t in range(eval(input())):
	a=input()
	b=input()
	if a in b:
		print("possible")
	else:
		print("not possible")


t = int(input())

while t>0:
	s1 = input()
	s2 = input()
	if s2.find(s1) == -1:
		print("not possible")
	else:
		print("possible")
	t-=1


cases = eval(input())
for i in range(0,cases):
	s1 = input()
	s2 = input()
	if s1 in s2:
		print("possible")
	else:
		print("not possible")


import sys
t=(int)(input())
for i in range (0,t):
	a=input()
	b=input()
	if a in b:
		print("possible")
	else:
		print("not possible")





t=int(input())
if(t>=1 and t<=10):
	for r in range(t):
		s1=input()
		s2=input()
		if(len(s1)>=1 and len(s2)>=1 and len(s1)<=1000 and len(s2)<=1000):
			if(s2.find(s1)>=0):
				print('possible')
			else:
				print('not possible')
		


t=int(input())
for i in range(t):
	p=input()
	q=input()
	if p in q:
		print("possible")
	else:
		print("not possible")


t = eval(input())
for tt in range(t):
	s1 = input()
	s2 = input()
	if s1 in s2:
		print('possible')
	else:
		print('not possible')


'''
# Read input from stdin and provide input before running code

name = raw_input('What is your name?\n')
print 'Hi, %s.' % name
'''

t=input()
t=int(t)

arr=[]
for i in range(t):
	str1=input()
	str2=input()
	str2.split()
	if str1 in str2:
		arr.append("possible")
	else:
		arr.append("not possible")
for x in arr:
    print(x)


t=eval(input())
while(t):
	x=input()
	y=input()
	if( x in y):
		print("possible")
	else:
	 	print("not possible")
	t-=1


t = int(input())
import re
for _ in range(t):
	s1, s2 = input(), input()
	if s1 in s2:
		print('possible')
	else:
		print('not possible')