Problem Statement:
You are one of the organizers of Pragyan.Having worked so hard to ensure
success of the event, you are able to spot the word "pragyan" in any text.
You are given a stream of character strings and you need to output them 
till you find the word "pragyan".Stop processing after 
NOTE: The word "pragyan" can have 0,1..or all characters in uppercase.

Input format:
Input consists of a single word in each line.

Output Format:
For each word, print the input word till the word "pragyan" is found.Stop
processing after this.

Input Constraints:
Length of each word ≤ 100.
All words contain only alpabets.(No numbers and special characters included).

SAMPLE INPUT
The
quick
brown
fox
praGyan
jumped
over
the
laz
dog

SAMPLE OUTPUT
The
quick
brown
fox
praGyan

Difficulty: UNKNOWN_DIFFICULTY

Solutions:
def main():
	l = []
	while(1):
	   str = input()
	   l.append(str)
	   if( str.lower() == "pragyan"):
		   break
	for i in l:
		 print(i)
   


if __name__ == "__main__":main() 


def main():
	s = []
	while(1):
	   str = input()
	   s.append(str)
	   if( str.lower() == "pragyan"):
		   break
	for i in s:
		 print(i)
   


if __name__ == "__main__":main() 


def main():
	l = []
	while(1):
	   str = input()
	   l.append(str)
	   if( str.lower() == "pragyan"):
		   break
	for i in l:
		 print(i)
   


if __name__ == "__main__":main() 


def main():
	l = []
	while(1):
	   str = input()
	   l.append(str)
	   if( str.lower() == "pragyan"):
		   break
	for i in l:
		 print(i)
   


if __name__ == "__main__":main() 


a='hello'
while(True):
	a=input()
	b=a.lower()
	if(b=='pragyan'):
		print(a)
		break
	else:
		print(a)


def main():
	p = []
	while(1):
	   str = input()
	   p.append(str)
	   if( str.lower() == "pragyan"):
		   break
	
	for i in p:
		 print(i)
   


if __name__ == "__main__":main() 


a=[]
b="pragyan"
i=0
while i>=0:
	a.append(1)
	a[i] = input()
	c=a[i].lower()
	if c==b:
	   print(a[i])
	   break
	else:
	   print(a[i])
	i=i+1


def main():
	l = []
	while(1):
	   str = input()
	   l.append(str)
	   if( str.lower() == "pragyan"):
		   break
	for i in l:
		 print(i)
   


if __name__ == "__main__":main() 


def main():
	l = []
	while(1):
	   str = input()
	   l.append(str)
	   if( str.lower() == "pragyan"):
		   break
	for i in l:
		 print(i)
   


if __name__ == "__main__":main() 


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

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

 
while(1):
	l = input()
	
	print(l)
	if("PRAGYAN"==l.upper()):
		
		break


def main():
	l = []
	while(1):
	   str = input()
	   l.append(str)
	   if( str.lower() == "pragyan"):
		   break
	for i in l:
		 print(i)
   


if __name__ == "__main__":main()