<filename>ajith1.py<gh_stars>0
# def name(x,y):
# 	if x%y==0:
# 		print("Ajith")
# 	else:
# 		print("Subramaniam")
# name(4,2)
##################################################################

# def my_function(name):
#   print(name + "   dsvsbasf")

# my_function("Emil")
# my_function("Tobias")
# my_function("Linus")

#########################################################

# def my_function(name):
#   print(name + "   dsvsbasf")

# my_function("Emil")
# my_function("Tobias")
# my_function("Linus")
######################################################


# a=input()
# b=int(input())
# c=int(input())
# def calculator(a,b,c):
# 	if a=="add":
# 		a=c+b
# 		print(a)
# 	elif a=="subtract":
# 		a=b-c
# 		print(a)
# 	elif a=="multiply":
# 		a=b*c
# 		print(a)
# 	elif a=="divide":
# 		a=b/c
# 		print(a)
# print(calculator(a,b,c))

###########################################################
# def my_function(country = "Norway"):
#   print("I am from " + country)

# my_function("Sweden")
# my_function("India")
# my_function()
# my_function("Brazil")


# a=input()
# print("i am ",a)


# def my_function(food):
#   for x in food:
#     print(x)

# fruits = ["apple", "banana", "cherry"]

# my_function(fruits)

# ##########################################################################
# def my_function(name):
# 	for x in name:
# 		print(x)

# names=["a","b","c"]		
# my_function(names)	

###################################################################

# def my_function(x):
#   return 5 + x

# print(my_function(3))
# print(my_function(5))
# print(my_function(9))
# ##################################################################################
# def my_function(child3, child2, child1):
#   print("The youngest child is " + child3)

# my_function(child1 = "Emil", child2 = "Tobias", child3 = "Linus")


######################################################################
# def ask_question():
# 	print("who is the founder of face book")
# 	print("<NAME>")
# 	print("<NAME>")
# 	print("<NAME>")
# 	print("<NAME>")
	
# ask_question()
##############################################################################
# def my_function(x):
#   print(5 * x)

# (my_function(3))
# (my_function(5))
# (my_function(9))
#################################################################
# def ask_question():
	
# 		print(a,"who is the founder of face book")
# 		print("<NAME>")
# 		print("<NAME>")
# 		print("<NAME>")
# 		print("<NAME>")
		
# a=0
# while a < 100:	
# 	ask_question()
# 	a=a+1

#####################################
# numbers_list = [1, 2, 3, 4, 5, 6, 7, 10, -2]
# print max(numbers_list)

############################################################
# def say_hello(name):
#     print "Hello ", name
#     print "Aap kaise ho?"
# say_hello("Aatif")
# say_hello( "ajith")
# say_hello("17")

# ##########################################################
# def add_numbers(number1, number2):
#     print "Main do numbers ko add karunga."
#     print number1 + number2
# add_numbers(120, 50)
# num_x = 134
# num_y = 22
# add_numbers(num_x, num_y)
################################################
# def say_hello_language(name, language):
#     if language == "hindi":
#         print "Namaste ", name
#         print "Aap kaise ho?"
#     elif language == "punjabi":
#         print "Sat sri akaal ", name
#         print "Tuhada ki haal hai?"
#     else:
#         print "Hello ", name
#         print "How are you?"
# say_hello_language("Rishabh", "punjabi")
# say_hello_language("Armaan", "english")
# say_hello_language("Abhishek", "french")
# say_hello_language("Kavay", "hindi")
########################################################
# def name (name):
# 	print("what is your name ?")
# 	print("my name is ",name)
# name("ajith")	

############################################################
# def sum():
# 	a=[10,10,10]
# 	b=[20,03,83]
# 	for i in range(len(a)):
# 		print(a[i]+b[i])
# sum()		
################################################################
# def even( ):
# 	a=[10,19,18,16,16]
# 	b=[2,4,6,8,10]
# 	for i in range(len(a)):
# 		if a[i]%2==0 and b[i]%2==0:
# 			print("two no are even")
# 		else:
# 			print("two no are not even")
# even()			
############################################################
# def menu(day):
#     if day == "monday":
#         return "Butter Chicken"
#     elif day == "tuesday":
#         return "Mutton Chaap"
#     else:
#         return "Chole Bhature"

#     print "Kya main print ho payungi? :-("

# mon_menu = menu("monday")
# print mon_menu
# tues_menu = menu("tuesday")
# print tues_menu
# fri_menu = menu("friday")
# print fri_menu
# #########################################################
# def sum():
# 	a=[10,10,10]
# 	b=[20,03,83]
# 	for i in range(len(a)):
# 		print(a[i]*b[i])
# sum()		
############################################################################
# def nav():
# 	for i in range(0,100):
# 		if i%3==0 and i%7==0 and i%21==0:
# 			print("nav guru kul")
# 		elif i%3==0:
# 			print("nav")
# 		elif i%7==0:
# 			print("nav guru")
# 		else:
# 			print(i)
# nav()			
##########################################################################
# def ajith():
# 	a=int(input("enter the total no students"))
# 	b=int(input("enter the amount spend "))
# 	c=a*b
# 	if c>=50000:
# 		print("more amount")
# 	else:
# 		print("less amount")
# ajith()		
#########################################################################
# ajith="ajithajith"
# print(len(ajith))
# ###########################################################################3
# def pass_word():
	# a=input("enter the pass_word")
	# if (6<len(a)<12) and ("$" in a):
	# 	if ("2" in a or "8" in a) and ("A" or "Z" in a):
	# 		print("correct")
	# 	else:
	# 		print("ajith")
	# else:
	# 	print("wrong")
# pass_word()		
####################################################################3
# def ajith():
# 	a=int(input("enter the number"))
# 	b=int(input("enter the number"))
# 	c=int(input("enter the number"))
# 	if a>b and a>c:
# 		print(a,"graetest")
# 	elif b>a and b>c:
# 		print(b,"graetest")
# 	else:
# 		print(c,"graetest")
# ajith()		
################################################################################
# def factorial():
# 	b=1
# 	a=int(input("enter the num"))
# 	for i in range(1,a+1):
# 		b=b*i
# 		print(b)
# factorial()	

# b=1
# n=int(input("enter the no:"))
# for i in range(n,1,-1):
# 	b=b*i
# print(b)
# #####################################################################################3
# def ajith():
# 	list = ["Rishabh", "Rishabh", "Abhishek", "Rishabh", "Divyashish", "Divyashish"]
# 	a=[]
# 	for i in list:
# 		if i not in a:
# 			a.append(i)
# 	print(a)
# ajith()
##############################################################################
# def ajith():
# 	list1 = [1, 342, 75, 23, 98]
# 	list2 = [75, 23, 98, 12, 78, 10, 1]
# 	a=[]
# 	for i in list1:
# 		for j in list2:
# 			if i==j:
# 				a.append(i)
# 				a.sort()
# 	print(a)			
# ajith()
#######################################################################
# def ajith():
# 	list1 = [1, 5, 10, 12, 16, 20]
# 	list2 = [1, 2, 10, 13, 16]
# 	a=[]
# 	for i in list1:
# 		for j in list2:
# 			if i not in a:
# 				a.append(i)
# 				if j not in a:
# 					a.append(j)
# 	print(a)
# ajith()	



# list1 = [1, 5, 10, 12, 16, 20]
# list2 = [1, 2, 10, 13, 16]
# list1.extend(list2)
# a=set(list1)
# print(list(a))
###########################################################################
# a=input("enter the num")
# d=int(a)
# b=list(a)
# print(b)
# c=0
# for i in a:
# 	c+=int(i)
# print(c)
# if d%c==0:
# 	print("harashad no")
# else:
# 	print("not ")
###########################################################################
# a=int (input("  1:"))
# i=1
# while True:
# 	c=0
# 	for j in range(1,a+1):
# 		if i%j==0:
# 			c+=1
# 		else:
# 			i+=1
# 			break
# 	if c==a:
# 		print(i)
# 		break
####################################################################
# big_list = [[1,2,3], [5,8,9], [4,3,77,521,31,311]]
# for i in big_list:
# 	for j in i:
# 		print(j)
# 	print("....")	
# #####################################################
# marks = [[45, 21, 42, 63], [12, 42, 42, 53], [42, 90, 78, 13], [94, 89, 78, 76], [87, 55, 98, 99]]
# for i in marks:
# 	print(max(i))
###############################################################
# sentence = "NavGurukul is an alternative to higher education reducing the barriers of current formal education system"
# print(sentence.split())
#####################################################################

# num = [12, 312, 42, 123, 5, 12, 53, 75, 123, 62, 9]
# for i in num:
# 	if i>20:
# 		print(i)

# def numbers_greater_than_twenty(list):
# 		counter = 0
# 		while counter < len(list):
# 			item = list[counter]
# 			if item > 20:
# 				list.remove(item)
# 				return list
# 				num_list = [12, 312, 42, 123, 5, 12, 53, 75, 123, 62, 9]
# 				num_list_20 = numbers_greater_than_twenty(num_list)

# 				print ("Initial list", num_list)
# 				print ("List that doesn't contain numbers greate than 20", new_list)
# numbers_greater_than_twenty()


####################################################################from random import randint

# def win():
#     print 'You win!'

# def lose():
#     print 'You lose!'

# while False:
#     player_choice = raw_input('What do you pick? (rock, paper, scissors)')
#     player_choice.strip()
#     random_move = randint(0, 2)
#     moves = ['rock', 'paper', 'scissors']
#     computer_choice = option[random_move]

#     if player_choice = computer_choice:
#         print 'Draw!'
#     elif  == 'rock' and coMp == 'scissors':
#         win()
#     elif  == 'paper' and comp == 'scissors':
#         lose()
#     elif playe == 'scissors' and comp == 'paper':
#         win()
#     elif player == 'scissors' and Comp == 'rock':
#         lose()
#     elif payer == 'paper' and computer == 'rock':
#         win()
#     elif player ==  and comp == :
#         lose()
#     aGain = raw_input('Do you want to play again? (y or n)').strip()
#     if again == 'n':
#         break

# ###################################################################
# chars =         ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
# shifted_chars = ['c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','a','b']

# chars =         ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
# shifted_chars = ['c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','a','b']

# # encrypt_message function defined here but not called
# def encrypt_message(plain_msg):
# # this fucnction takes "plain_msg" as an argument and print/return the encrypted message. The "plain_msg" is tranfered into "encrypted_msg" using "shifted_chars" list. Example, if plain_msg = "ng" then n => p, g => i  and hence encrypted_msg = "pi"
#     encrypted_msg = ""
#     for character in plain_msg:
#       # for character in msg
#         if character in chars:
#             char_index = chars.index(character)
#             new_char = shifted_chars[char_index]
#             encrypted_msg = encrypted_msg + new_char
#         else:
#             encrypted_msg = encrypted_msg + character
#     print encrypted_msg
# # decrypt_message function defined here but not called
# def decrypt_message(encrypted_msg):
# # this fucnction takes "encrypted_msg" as an argument and print/return the encrypted message. The "encrypted_msg" is tranfered into "decrypted_msg" using "shifted_chars" list. Example, if encrypted_msg = "pi" then p => n, i => g  and hence decrypted_msg = "ng"
#     decrypted_msg = ""
#     for character in encrypted_msg:
#         if character in shifted_chars:
#             char_index =shifted_chars.index(character) 
#             new_char = chars[char_index]
#             decrypted_msg = decrypted_msg + new_char
#         else:
#             decrypted_msg = decrypted_msg + character
#     print decrypted_msg       


# # methods should return or print the new messages.
# ############################################### Code starts from here ##################################################
# flag = True
# while flag == True:
# 	choice = raw_input("What do you want to do? 1. Encrypt a message 2. Decrypt a message  Enter `e` or `d` respectively!")
# 	if choice == 'e':
# 	    plain_message = raw_input("Enter message to encrypt??")
# 	    encrypt_message(plain_message)
# 	elif choice == 'd':
# 	    encrypted_msg = raw_input("Enter message to decrypt?")
# 	    decrypt_message(encrypted_msg)
# 	else:
# 	    play_again = raw_input("Do you want to try agian or Do you want to exit? (Y/N)")
# 	    if play_again == 'Y':
# 	        continue
# 	    elif play_again == 'N':
# 	        break

# from random import randint # allows you to generate a random number

# # variables for the alien
# alive = True
# stamina = 10

# # this function runs each time you attack the alien
# def report(s):
# # syntactic error in if else statements
#     if s > 8:
#         print "The alien is strong! It resists your pathetic attack!"
#     elif s > 5:
#         print "With a loud grunt, the alien stands firm."
#     elif s > 3:
#         print "Your attack seems to be having an effect! The alien stumbles!"
#     elif s > 0:
#         print "The alien is certain to fall soon! It staggers and reels!"
#     else:
#         print "That's it! The alien is finished!"
# # report(s)        

# # main function - accepts your input for fight with the alien
# def fight(stamina): # stamina
#     while stamina > 0:
#       # won't enter this loop ever. The function will always return False.
#         response = raw_input(" Enter a move 1.Hit 2.attack 3.fight 4.run")
#         # chose a response from ( hit, attack, fight and run)
#         # fight scene
#         if "hit" in response or "attack" in response:
#             less = randint(0, stamina)
#             stamina  -= 1 
#             print stamina# subtract random int from stamina
#             report(stamina) # see function above
#         elif "fight" in response:
#             print "Fight how? You have no weapons, silly space traveler!"
#         elif "run" in response:
#             print "Sadly, there is nowhere to run.",
#             print "The spaceship is not very big."
#         else:
#             print "The alien zaps you with its powerful ray gun!"
#             return True
#     return False

# print "A threatening alien wants to fight you!"
# # quotes at the end.

# # call the function - what it returns will be the value of alive
# alive = fight( stamina )

# if alive: # means if alive == True
#     print "\nThe alien lives on, and you, sadly, do not.\n"
# else:
#     print "\nThe alien has been vanquished. Good work!\n"

# #############################################################################
# my_file = open("others.txt")
# file_data = my_file.read()
# print file_data
# my_file.close()

# my_file2 = open("people.txt", "w")
# my_file2.write("Abhishek - Gurgaon\n")
# my_file2.write("""Ranveer - Delhi \n priyanka - shimla
# neela - delhi
# sashi - jaipur
# sarika - delhi
# deepti - shimla
# harshad - delhi
# trishna - delhi
# pradeep - jaipur
# sekhar - delhi
# nand - delhi
# anoop - delhi
# balwinder - jaipur""")
# my_file2.close()b.write("["ahj","asd","asd","asds","asdf"]
# print my_file2


# Mentee courses
# # Iss text ko people1-exercise.txt ke naam ki file mein save karo.
# people =open("people.txt","w")
# people.write("""rishabh - meerut
# imtiyaz - delhi
# nilima - cochin
# rati - shimla
# ayishah - delhi
# raghu - shimla
# naseer - kanpur
# karthikeyan - delhi
# salma - jaipur
# pankaj - delhi
# brijesh - delhi
# govind - delhi
# puneet - shimla
# siddhi - delhi
# suman - jaipur
# rajeev - shimla
# mohinder - delhi
# rajendra - jaipur
# priyanka - shimla
# neela - delhi
# sashi - jaipur
# sarika - delhi
# deepti - shimla
# harshad - delhi
# trishna - raipur
# pradeep - jaipur
# sekhar - delhi
# nand - delhi
# anoop - delhi
# balwinder - tokyo""")
# people.close()

#########################################################333
# people =open("people.txt","w")
# people.write("""rishabh - meerut
# imtiyaz - delhi
# nilima - cochin
# rati - shimla
# ayishah - delhi
# raghu - shimla
# naseer - kanpur
# karthikeyan - delhi
# salma - jaipur
# pankaj - delhi
# brijesh - delhi
# govind - delhi
# puneet - shimla
# siddhi - delhi
# suman - jaipur
# rajeev - shimla
# mohinder - delhi
# rajendra - jaipur
# priyanka - shimla
# neela - delhi
# sashi - jaipur
# sarika - delhi
# deepti - shimla
# harshad - delhi
# trishna - raipur
# pradeep - jaipur
# sekhar - delhi
# nand - delhi
# anoop - delhi
# balwinder - tokyo""")
# people=open("people.txt")
# a=people.read()
# b=a.count("\n")
# print(b+1)
#####################################################################3
# banks_list = ["Kotak", "HDFC", "RBL", "SBI", "Bank of Baroda"]
# a=open("people.txt","w")
# for i in banks_list:
# 	a.write(i+"\n")
################################################################333

# a=open("question.txt")
# for i in a.read().split("\n"):
# 	if "delhi" in  i:
# 		n=open("delhi.txt","a")
# 		n.write(i+"\n")
# 	elif "shimla" in i:
# 		n=open("shimla.txt","a")
# 		n.write(i+"\n")
# 	else:
# 		n=open("others.txt","a")
# 		n.write(i+"\n")

# #############################################
# def encrypt():
#   message = raw_input("Enter the message you want to encrypt")
#   ascii_message = [ord(char)+3 for char in message]
#   encrypt_message = [ chr(char) for char in ascii_message]  
#   print ''.join(encrypt_message)

# def decrypt():
#   message = raw_input("Enter the message you want to decrypt")
#   ascii_message = [ord(char)-3 for char in message]
#   decrypt_message = [ chr(char) for char in ascii_message]  
#   print ''.join(decrypt_message)

# flag = True
# while flag == True:
# 	choice = raw_input("What do you want to do? \n1. Encrypt a message 2. Decrypt a message \nEnter e or d respectively!")
# 	if choice == 'e':
# 		encrypt()
# 	elif choice == 'd':
# 		decrypt()    
# 	else:
# 	    play_again = raw_input("Do you want to try agian or Do you want to exit? (Y/N)")
# 	    if play_again == 'Y':
# 	        continue
# 	    elif play_again == 'N':
# 	        break
######################################################################3
# import random
# def getSecretNum(numDigits):
# # Returns a string that is numDigits long, made up of unique random digits.
# 	numbers = list(range(10))
# 	random.shuffle(numbers)
# 	secretNum = ''
# 	for i in range(numDigits):
# 		secretNum=secretNum+str(numbers[i])
# 	print secretNum
# 	return secretNum

# def getClues(guess, secretNum):
# # Returns a string with the pico, fermi, None clues to the user.

# 	if guess == (secretNum):
# 		return 'You got it!'
# 	clue = []
# 	for i in range(len(str(guess))):
# 		if guess[i] == secretNum[i]:
# 			clue.append('Fermi')
# 		elif guess[i] in secretNum:
# 			clue.append('Pico')
# 		else:
# 			clue.append('None')
# 	return ''.join(clue)

# def isOnlyDigits(num):
# # Returns True if num is a string made up only of digits. Otherwise returns False.
# 	if len(num) !=3:
# 		print "enter only 3 digits no "
# 		return False
# 	else:
# 		return True

	

# def playAgain():
# 	# This function returns True if the player wants to play again, otherwise it returns False.
# 	play = raw_input("Do you want to play again? Yes or No?") 
# 	return play

# NUMDIGITS = 3
# MAXGUESS = 10

# print('I am thinking of a %s-digit number. Try to guess what it is.' % (NUMDIGITS))
# print('Here are some clues:')
# print('When I say:    That means:')
# print('  Pico         One digit is correct but in the wrong position.')
# print('  Fermi        One digit is correct and in the right position.')
# print('  None       No digit is correct.')

# numGuesses=1
# secretNum= getSecretNum(NUMDIGITS)
# print('I have thought up a number. You have %s guesses to get it.' % (MAXGUESS))
# while True:
# 	guess=int(input('enter : '))
# 	if numGuesses <= MAXGUESS:
# 		if isOnlyDigits(str(guess))==True:
# 			print 'Guess : ' + str(numGuesses)
# 			clue = getClues(str(guess), str(secretNum))
# 			print clue
# 		else:
# 			break
# 	numGuesses += 1
# 	if guess == int(secretNum):
# 		break
# 	else:
# 		print"Guess Again"
# 	if numGuesses > MAXGUESS:
# 		print 'You ran out of guesses. The answer was ' , secretNum
# 		if not playAgain()=="y":
# 			break
# 		else:
# 			numGuesses=1
	######################################################################
# xt ko save karein.


# Uske baad aapne jiss directory mein users.json save kiya hai, usse directory mein yeh python ka code save kariye ek dusri file mein.

# import json
# with open('user.json') as data_file:    
#     data = json.load(data_file)

# users = data['users']

# for user in users:
#     data = json.load(data_file)

# users = data['users']

# 	# counter = 0
# print ("users full name is " + user['firstName'] + ' ' + user['lastName'])
# # while counter < len(user['details']):
# print ("users mobile number is " , user['details']['mobileNo'])
# print ("users age  is " , user['details']['age'])
# print ("users city is " + user['details']['City'])

####################################################################
# a=int (input("enter the num  "))
# for i in range(1,a,1):
# 	if i%3==0 or i%5==0:
# 		print(i)


#########################################3
# a=int(input("enter "))
# if a%4==0 and a%100!=0 or a%400==0 :
# 	print("asdfghj")
# else:
# 	print("ghj")
# print("asdfghj") if  a%4==0 and a%100!=0 or a%400==0 else print("ghj")

###############################
# a=int(input("enter "))
# b=2
# c=a
# d=1
# e=1
# for i in (0,3,1):
# 	a=a+b
# 	# b=b+1
# 	print(a)
# for i in (0,3,1):
# 	c=c-e
# 	e=d+1
# 	print(c)


#######################################
# a=int(input("enter the year  "))
# b=1
# c=a
# d=0
# e=0
# for i  in range(0,16,1):
# 	a=a+b
# 	# print(a)
# 	if a%4==0 and a%100!=0 or a%400==0:
# 		print(a)
# 		d+=1
# 	if d>2:
# 		break
# for i in range(0,16,1):
# 	c=c-b
# 	if c%4==0 and c%100!=0 or c%400==0:
# 		print(c)
# 		e+=1
# 	if e>2:
# 		break	
##########################################
# a=input("enter the number ")
# b=a.split(" ")
# print(b)
# c=0
# s=int(''.join(b))
# print (s)
# for i in range(len(b)):
# 	d=int(b[i])*int(b[i])*int(b[i])
# 	c=c+d
# print(c)
# if s==c:
# 	print("armstrong number")
# else:
# 	print("not")

######################################
# a=input("enter the number ")
# b=0
# c=len(a)
# for i in a:
# 	b+=(int(i)**c)
# print("armstrong") if int(a)==b else print("not")	


##########################################
# z=int(input('enter a no: '))
# a=1
# while a<z:
#     s=0
#     for i in range(1,a,1):
#         if a%i==0:
#             s=s+i
#     if s==a:
#         print (s) 
#     a+=1 
################################33
# a=input("      ")
# if "ing" in a and "ly" in a:
# 	print(a)
# elif "ing" in a:
# 	print(a+"ly")
# else:
# 	print(a+"ing")

# #######################################
# a=input("enter :   ")
# c=len(a)
# if c>1:
# 	d=a[0]+a[1]+a[-2]+a[-1]
# 	print(d)
# elif c==2:
# 	print(a+a)
# else:
# 	print("empty")

########################################

# a=input("      ")
# if "ing" in a and "ly" in a:
# 	print(a)
# elif "ing" in a:
# 	b=a.replace("ing","ly")
# 	print(b)
# else:
# 	print(a+"ing")

##########################################
# a=int(input("    "))
# b=0
# c=1
# for i in range(a):
# 	if b%2==0:
# 		print(b)
# 	# print(b)
# 	d=b
# 	b=c
# 	c=d+c
	
	# print(d)
	
#########################################################	
# a=0
# c=0
# b=int(input("enter  "))
# for i in range(1,b+1,1):
# 	c=c+i
# 	a=a+(i**2)
# e=c**2
# print(a)
# print(e)
# f=e-a
# print(f)
################################
# a=int(input("enter "))
# b=1
# for i in range(1,a+1,1):
# 	b=b*i
# print(b)
#######################################
# a=input("enter ")
# b=0
# for i in a:
# 	b=b+int(i)
# 	print(b)
#############################################
# a=input("enter ")
# d=0
# for i in a:
# 	b=1
# 	for j in range(1,int(i)+1,1):
# 		b=b*int(j)
# 	# print(b)
# 	d=d+b
# print(d)
###################################
# a=input("enter ")
# b=list(a[:: -1])
# # for i in b:
# # x=len(b)
# for x in range(len(b)):
# 	if "0" in b[0]:
# 		b.remove(b[0])
# print(''.join(b))	

	



####################################
# a=int(input("enter the num    "))
# b=int(input("enter the power  "))
# c=a**b
# print(c)
# e=0
# for i in str(c):
# 	e=int(i)+e
# print(e)
#######################################
# a=input("enter    ")
# b=a.split(" ")
# b=list(b)
# print(b)
# c=0
# r=0
# for i in b:
# 	c=str(c)+i
# 	r=r+1
# print(r)
#########################################
# a=input("enter    ")
# b=a.split(" ")
# print(  b)
# c=["zero","one","two","three","four","five","six","seven","eight","nine"]
# d=[0,1,2,3,4,5,6,7,8,9]
# x=0
# for i in b:
# 	if i in c:
# 			e=c.index(i)
# 			f=d[e]
# 			x=x+e
# print(x)		

################################################
# a="asdfAAAAghjkASDFyuxcvgbhj."
# b=a.capitalize()
# b=a.casefold()
# b=a.center(50)
# b=a.count("A")
# b=a.endwith(".")

# print(b)	
# ################################
# book={
# 	"one":1,
# 	"two":2,
# 	"three":3,
# 	"four":4,
# 	"five":5,
# 	"six":6,
# 	"seven":7,
# 	"eight":8,
# 	"nine":9,
# 	"zero":0
# }
# a=input("enter  ")
# # b=a.split(" ")
# # print(b)
# b=0
# for i in book:
# 	if i in a:
# 		c=book[i]
# 		b=c+b
# print(b)



# amount = 5500
# if amount<= 2000:
#     discount = (amount * .5)
#     print ("Paid Amount: ", amount-discount)
# elif amount >=5000 and amount <=6000:
#     discount = (amount * .25)
#     print ("Paid Amount: ", amount-discount)
# if amount >= 10000:
#     discount = (amount * .35)
#     print ("Paid Amount: ", amount-discount)
# else:
#     discount = (amount *.50)
#     print ("Paid Amount: ", amount-discount)
# c = 0
# d = 1

# while c < 3:
#     c = c + 1
#     d = d * c
#     print "Loop Ke Andar", c, d
# else:
#     print "Loop Ke Bahar", c, d

# counter = 0
# string = "navgurukul"
# while (counter < len(string)):
#     if string[counter] == "g":
#         break
    
#     print(string[counter])
#     counter += 1

# print("The end", string[counter])
# var = 10
# while var > 0:              
#    print 'Current variable value :', var
#    var = var - 1
#    if var == 5:
#       break

# print "Good bye!"
# i = 0
# while(i<5):
#     j = 0
#     while(j<5): #loop2
#         if (j > 3): 
#             break 
#         else:
#             print "*", 
#         j = j + 1    
#     print ''
#     i = i + 1
# a = 0
# while(a<6):
#     b = 0
#     while(b<6):
#         if (a == b):
#             break
#         print '*',
#         b = b + 1
#     print ''
#     a = a + 1

# x = 10
# while(x<20):
#     if (x == 15):
#         break
#     if (x % 2 == 0):
#         x = x + 1
#         continue
#     print x
# #     x = x + 1
# a = [32, 23, 46, 19, 90, 12, 23, 95, 100, 1]

# l = len(a)
# i=0
# while (i < l/2):
#     a[i] = a[l-i-1]
#     i=i+1

# print a
# a = [32, 23, 46, 19, 90, 12, 23, 95, 100, 1]
# l = len(a)
# i = 0
# s = 0
# m1 = a[0]
# m2 = a[0]
# while (i < l):
#     s += a[i]00.33
#     if a[i] > m1:
#         m1 = a[i]
#     if a[i] < m1:
#         m2 = a[i]
#     i = i + 1
# print (s, m1, m2)
# list = ['a', 'b', 'c', 'd', 'e']
# print list[4:]
# print list[10:]
# print list[1:]
# print list[1:4]
# list = [1,2]*3
# # print list
# list1 = [100, 101, 102, 103, 104, 105, 106 ,107, 108, 109] #statement 1
# # print "index of element 105 is : ", list1.index(105) 
# my_string = ["delhi","bangalore","hyderabad"]
# i = 0
# string = []
# while(i<len(my_string)):
#     string.append(my_string[i].upper())
#     i = i+1
    
# # my_string = string
# print (string)
# my_string = 'hello world'
# i = 0
# while(i<len(my_string)):
# 	print (my_string)
#     	my_string = 'ng'
#     	i = i+1

# def b():
#     return 3

# def c():
    
#     return 7 * b()

# def a():
#     return(b() + c())


# print a()
# print b()
# print c()

# n = 10
# def a(n):
#     return n+2

# # print a(4)
# def sum1(n):
#     if (n==0):
#         return 0
#     return sum1(n-1) + n

# print sum1(6)




# def fib(n):
#     if (n==0):
#         return 1
#     elif (n==1):
#         return 1
#     else:
#         return fib(n-1)+fib(n-2)

# print fib(6)






# def fib(n):
#     if (n==0):
#         return 1
#     elif (n==1):
#         return 1
#     else:
#         return fib(n-1)+fib(n-2)

# print fib(6)


# def fib_series(n):
#     if (n==1):
#         return [1, 1]
#     else:
#         series = fib_series(n-1)
#         return [series[0] + series[1]] + series

# # print fib_series(8)
# def hcf(a,b):
#     if(b==0):
#         return a
#     else:
#         return hcf(b,a%b)

# print hcf(120, 100)

# def a(l):
#     al = len(l)
#     i = 0
#     while(i<al/2):
#         i += 1
#         l[i] = l[al-i -1]


# example = [3, 9, 1, 2, 7]
# a(example)
# print example


# ################################################
# def calc(a, b, operator):
# 	if operator == '+':
# 		return a + b
# 	elif operator == '*':
# 		return a * b
# 	elif operator == '/':
# 		return a / b
# 	elif operator == '-':
# 		return a - b
# 	else:
# 		print "Unsupoorted operator"
# calc(1,2,"+")		

############################################################################
# banks_list = ["Kotak", "HDFC", "RBL", "SBI", "Bank of Baroda"]
# print banks_list
# print type(banks_list)



# mixed_list = ["rahul", 12, 9.0, "kaavay", "shivam", 1]
# print type(mixed_list)

# numbers=[50, 40, 23, 70, 56, 12, 5, 10, 7]
# r=0
# for i in numbers:
# 	r=r+1
# print(r)


# numbers=[50, 40, 23, 70, 56, 12, 5, 10, 7]
# r=0
# for i in numbers:
# 	if 20 < i < 40:
# 		r=r+1
# 		print(i,r)



# numbers=[50, 40, 23, 70, 56, 12, 5, 10, 7]
# a=numbers[0]
# for i in numbers:
# 	if a < i:
# 		a=i
# print(a)	





# numbers=[50, 40, 23, 70, 56, 12, 5, 10, 7]
# numbers.remove(max(numbers))
# print(max(numbers))

#######################################################################################################
# a=int(input("date"))
# b=int(input("month"))
# c=int(input("year"))
# import datetime
# d=datetime.date.today()
# print(d)
# e=datetime.date(c,b,a)
# print(e.year)
# f=d-e
# import itertools

# f=365
# for i in range(2018,2019):
# 	for j in range(1,13):

# 		if (i%4==0 and i%100!=0) or i %400==0:
# 			if j==2:
# 				f-=29
# 			elif j%2==0:
# 				f-=30
# 			else:
# 				f-=31
# 		else:
# 			if j==2:
# 				f-=28
# 			elif j%2==0:
# 				f-=30
# 			else:
# 				f-=31		

# print(f)
# g=open("library.py","r")
# c=g.read()
# print(c)
# f={"name":"asdf","bookname":"sdfg","cash":2345}
# (c.append(f))
# print(c)


###################################################################
# a=input("enter the num")
# d=int(a)
# # b=list(a)
# # print(b)
# c=0
# for i in a:
# 	c+=int(i)
# print(c)
# if d%c==0:
# 	print("harashad no")
# else:
# 	print("not ")######################################
#########################################################
# import requests,json,os
# # from
#  # os import path
# if os.path.exists("course.json"):
# 	with open ("course.json","r") as b:
# 		c=json.load(b)
# 		c=json.loads(c)
# 		# c=json.dump(b)
# else:
# 	a=requests.get("http://saral.navgurukul.org/api/courses")
# 	print(a)
# 	with open ("course.json","w+") as b:
# 			c=json.dump(a.text,b)
# 			c=json.loads(a.text)
# 			# print(c)
# d=c["availableCourses"]
# z=[1]
# y=int(input("enter the no     "))
# def api(y):
# 	for i in range(len(d)):
# 		x=d[i]["id"]
# 		z.append(x)
# 	print(z[y])	

# 	e=requests.get("http://saral.navgurukul.org/api/courses/"+str(z[y])+"/exercises")
	
# 	f=json.loads(e.text)
# 	# print(e.text)
# 	h=f["data"]
# 	for i in range(len(h)):
# 		print(h[i]["name"])
# 	x=input("enter F to forward P to previous  m to same  ")
# 	if x=="F":
# 		api(y+1)
# 	elif x=="P":
# 		api(y-1)
# 	elif x=="M":
# 		api(y)		
# api(y)		

#######################################################





<filename>ajith1.py<gh_stars>0
# def name(x,y):
# 	if x%y==0:
# 		print("Ajith")
# 	else:
# 		print("Subramaniam")
# name(4,2)
##################################################################

# def my_function(name):
#   print(name + "   dsvsbasf")

# my_function("Emil")
# my_function("Tobias")
# my_function("Linus")

#########################################################

# def my_function(name):
#   print(name + "   dsvsbasf")

# my_function("Emil")
# my_function("Tobias")
# my_function("Linus")
######################################################


# a=input()
# b=int(input())
# c=int(input())
# def calculator(a,b,c):
# 	if a=="add":
# 		a=c+b
# 		print(a)
# 	elif a=="subtract":
# 		a=b-c
# 		print(a)
# 	elif a=="multiply":
# 		a=b*c
# 		print(a)
# 	elif a=="divide":
# 		a=b/c
# 		print(a)
# print(calculator(a,b,c))

###########################################################
# def my_function(country = "Norway"):
#   print("I am from " + country)

# my_function("Sweden")
# my_function("India")
# my_function()
# my_function("Brazil")


# a=input()
# print("i am ",a)


# def my_function(food):
#   for x in food:
#     print(x)

# fruits = ["apple", "banana", "cherry"]

# my_function(fruits)

# ##########################################################################
# def my_function(name):
# 	for x in name:
# 		print(x)

# names=["a","b","c"]		
# my_function(names)	

###################################################################

# def my_function(x):
#   return 5 + x

# print(my_function(3))
# print(my_function(5))
# print(my_function(9))
# ##################################################################################
# def my_function(child3, child2, child1):
#   print("The youngest child is " + child3)

# my_function(child1 = "Emil", child2 = "Tobias", child3 = "Linus")


######################################################################
# def ask_question():
# 	print("who is the founder of face book")
# 	print("<NAME>")
# 	print("<NAME>")
# 	print("<NAME>")
# 	print("<NAME>")
	
# ask_question()
##############################################################################
# def my_function(x):
#   print(5 * x)

# (my_function(3))
# (my_function(5))
# (my_function(9))
#################################################################
# def ask_question():
	
# 		print(a,"who is the founder of face book")
# 		print("<NAME>")
# 		print("<NAME>")
# 		print("<NAME>")
# 		print("<NAME>")
		
# a=0
# while a < 100:	
# 	ask_question()
# 	a=a+1

#####################################
# numbers_list = [1, 2, 3, 4, 5, 6, 7, 10, -2]
# print max(numbers_list)

############################################################
# def say_hello(name):
#     print "Hello ", name
#     print "Aap kaise ho?"
# say_hello("Aatif")
# say_hello( "ajith")
# say_hello("17")

# ##########################################################
# def add_numbers(number1, number2):
#     print "Main do numbers ko add karunga."
#     print number1 + number2
# add_numbers(120, 50)
# num_x = 134
# num_y = 22
# add_numbers(num_x, num_y)
################################################
# def say_hello_language(name, language):
#     if language == "hindi":
#         print "Namaste ", name
#         print "Aap kaise ho?"
#     elif language == "punjabi":
#         print "Sat sri akaal ", name
#         print "Tuhada ki haal hai?"
#     else:
#         print "Hello ", name
#         print "How are you?"
# say_hello_language("Rishabh", "punjabi")
# say_hello_language("Armaan", "english")
# say_hello_language("Abhishek", "french")
# say_hello_language("Kavay", "hindi")
########################################################
# def name (name):
# 	print("what is your name ?")
# 	print("my name is ",name)
# name("ajith")	

############################################################
# def sum():
# 	a=[10,10,10]
# 	b=[20,03,83]
# 	for i in range(len(a)):
# 		print(a[i]+b[i])
# sum()		
################################################################
# def even( ):
# 	a=[10,19,18,16,16]
# 	b=[2,4,6,8,10]
# 	for i in range(len(a)):
# 		if a[i]%2==0 and b[i]%2==0:
# 			print("two no are even")
# 		else:
# 			print("two no are not even")
# even()			
############################################################
# def menu(day):
#     if day == "monday":
#         return "Butter Chicken"
#     elif day == "tuesday":
#         return "Mutton Chaap"
#     else:
#         return "Chole Bhature"

#     print "Kya main print ho payungi? :-("

# mon_menu = menu("monday")
# print mon_menu
# tues_menu = menu("tuesday")
# print tues_menu
# fri_menu = menu("friday")
# print fri_menu
# #########################################################
# def sum():
# 	a=[10,10,10]
# 	b=[20,03,83]
# 	for i in range(len(a)):
# 		print(a[i]*b[i])
# sum()		
############################################################################
# def nav():
# 	for i in range(0,100):
# 		if i%3==0 and i%7==0 and i%21==0:
# 			print("nav guru kul")
# 		elif i%3==0:
# 			print("nav")
# 		elif i%7==0:
# 			print("nav guru")
# 		else:
# 			print(i)
# nav()			
##########################################################################
# def ajith():
# 	a=int(input("enter the total no students"))
# 	b=int(input("enter the amount spend "))
# 	c=a*b
# 	if c>=50000:
# 		print("more amount")
# 	else:
# 		print("less amount")
# ajith()		
#########################################################################
# ajith="ajithajith"
# print(len(ajith))
# ###########################################################################3
# def pass_word():
	# a=input("enter the pass_word")
	# if (6<len(a)<12) and ("$" in a):
	# 	if ("2" in a or "8" in a) and ("A" or "Z" in a):
	# 		print("correct")
	# 	else:
	# 		print("ajith")
	# else:
	# 	print("wrong")
# pass_word()		
####################################################################3
# def ajith():
# 	a=int(input("enter the number"))
# 	b=int(input("enter the number"))
# 	c=int(input("enter the number"))
# 	if a>b and a>c:
# 		print(a,"graetest")
# 	elif b>a and b>c:
# 		print(b,"graetest")
# 	else:
# 		print(c,"graetest")
# ajith()		
################################################################################
# def factorial():
# 	b=1
# 	a=int(input("enter the num"))
# 	for i in range(1,a+1):
# 		b=b*i
# 		print(b)
# factorial()	

# b=1
# n=int(input("enter the no:"))
# for i in range(n,1,-1):
# 	b=b*i
# print(b)
# #####################################################################################3
# def ajith():
# 	list = ["Rishabh", "Rishabh", "Abhishek", "Rishabh", "Divyashish", "Divyashish"]
# 	a=[]
# 	for i in list:
# 		if i not in a:
# 			a.append(i)
# 	print(a)
# ajith()
##############################################################################
# def ajith():
# 	list1 = [1, 342, 75, 23, 98]
# 	list2 = [75, 23, 98, 12, 78, 10, 1]
# 	a=[]
# 	for i in list1:
# 		for j in list2:
# 			if i==j:
# 				a.append(i)
# 				a.sort()
# 	print(a)			
# ajith()
#######################################################################
# def ajith():
# 	list1 = [1, 5, 10, 12, 16, 20]
# 	list2 = [1, 2, 10, 13, 16]
# 	a=[]
# 	for i in list1:
# 		for j in list2:
# 			if i not in a:
# 				a.append(i)
# 				if j not in a:
# 					a.append(j)
# 	print(a)
# ajith()	



# list1 = [1, 5, 10, 12, 16, 20]
# list2 = [1, 2, 10, 13, 16]
# list1.extend(list2)
# a=set(list1)
# print(list(a))
###########################################################################
# a=input("enter the num")
# d=int(a)
# b=list(a)
# print(b)
# c=0
# for i in a:
# 	c+=int(i)
# print(c)
# if d%c==0:
# 	print("harashad no")
# else:
# 	print("not ")
###########################################################################
# a=int (input("  1:"))
# i=1
# while True:
# 	c=0
# 	for j in range(1,a+1):
# 		if i%j==0:
# 			c+=1
# 		else:
# 			i+=1
# 			break
# 	if c==a:
# 		print(i)
# 		break
####################################################################
# big_list = [[1,2,3], [5,8,9], [4,3,77,521,31,311]]
# for i in big_list:
# 	for j in i:
# 		print(j)
# 	print("....")	
# #####################################################
# marks = [[45, 21, 42, 63], [12, 42, 42, 53], [42, 90, 78, 13], [94, 89, 78, 76], [87, 55, 98, 99]]
# for i in marks:
# 	print(max(i))
###############################################################
# sentence = "NavGurukul is an alternative to higher education reducing the barriers of current formal education system"
# print(sentence.split())
#####################################################################

# num = [12, 312, 42, 123, 5, 12, 53, 75, 123, 62, 9]
# for i in num:
# 	if i>20:
# 		print(i)

# def numbers_greater_than_twenty(list):
# 		counter = 0
# 		while counter < len(list):
# 			item = list[counter]
# 			if item > 20:
# 				list.remove(item)
# 				return list
# 				num_list = [12, 312, 42, 123, 5, 12, 53, 75, 123, 62, 9]
# 				num_list_20 = numbers_greater_than_twenty(num_list)

# 				print ("Initial list", num_list)
# 				print ("List that doesn't contain numbers greate than 20", new_list)
# numbers_greater_than_twenty()


####################################################################from random import randint

# def win():
#     print 'You win!'

# def lose():
#     print 'You lose!'

# while False:
#     player_choice = raw_input('What do you pick? (rock, paper, scissors)')
#     player_choice.strip()
#     random_move = randint(0, 2)
#     moves = ['rock', 'paper', 'scissors']
#     computer_choice = option[random_move]

#     if player_choice = computer_choice:
#         print 'Draw!'
#     elif  == 'rock' and coMp == 'scissors':
#         win()
#     elif  == 'paper' and comp == 'scissors':
#         lose()
#     elif playe == 'scissors' and comp == 'paper':
#         win()
#     elif player == 'scissors' and Comp == 'rock':
#         lose()
#     elif payer == 'paper' and computer == 'rock':
#         win()
#     elif player ==  and comp == :
#         lose()
#     aGain = raw_input('Do you want to play again? (y or n)').strip()
#     if again == 'n':
#         break

# ###################################################################
# chars =         ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
# shifted_chars = ['c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','a','b']

# chars =         ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
# shifted_chars = ['c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','a','b']

# # encrypt_message function defined here but not called
# def encrypt_message(plain_msg):
# # this fucnction takes "plain_msg" as an argument and print/return the encrypted message. The "plain_msg" is tranfered into "encrypted_msg" using "shifted_chars" list. Example, if plain_msg = "ng" then n => p, g => i  and hence encrypted_msg = "pi"
#     encrypted_msg = ""
#     for character in plain_msg:
#       # for character in msg
#         if character in chars:
#             char_index = chars.index(character)
#             new_char = shifted_chars[char_index]
#             encrypted_msg = encrypted_msg + new_char
#         else:
#             encrypted_msg = encrypted_msg + character
#     print encrypted_msg
# # decrypt_message function defined here but not called
# def decrypt_message(encrypted_msg):
# # this fucnction takes "encrypted_msg" as an argument and print/return the encrypted message. The "encrypted_msg" is tranfered into "decrypted_msg" using "shifted_chars" list. Example, if encrypted_msg = "pi" then p => n, i => g  and hence decrypted_msg = "ng"
#     decrypted_msg = ""
#     for character in encrypted_msg:
#         if character in shifted_chars:
#             char_index =shifted_chars.index(character) 
#             new_char = chars[char_index]
#             decrypted_msg = decrypted_msg + new_char
#         else:
#             decrypted_msg = decrypted_msg + character
#     print decrypted_msg       


# # methods should return or print the new messages.
# ############################################### Code starts from here ##################################################
# flag = True
# while flag == True:
# 	choice = raw_input("What do you want to do? 1. Encrypt a message 2. Decrypt a message  Enter `e` or `d` respectively!")
# 	if choice == 'e':
# 	    plain_message = raw_input("Enter message to encrypt??")
# 	    encrypt_message(plain_message)
# 	elif choice == 'd':
# 	    encrypted_msg = raw_input("Enter message to decrypt?")
# 	    decrypt_message(encrypted_msg)
# 	else:
# 	    play_again = raw_input("Do you want to try agian or Do you want to exit? (Y/N)")
# 	    if play_again == 'Y':
# 	        continue
# 	    elif play_again == 'N':
# 	        break

# from random import randint # allows you to generate a random number

# # variables for the alien
# alive = True
# stamina = 10

# # this function runs each time you attack the alien
# def report(s):
# # syntactic error in if else statements
#     if s > 8:
#         print "The alien is strong! It resists your pathetic attack!"
#     elif s > 5:
#         print "With a loud grunt, the alien stands firm."
#     elif s > 3:
#         print "Your attack seems to be having an effect! The alien stumbles!"
#     elif s > 0:
#         print "The alien is certain to fall soon! It staggers and reels!"
#     else:
#         print "That's it! The alien is finished!"
# # report(s)        

# # main function - accepts your input for fight with the alien
# def fight(stamina): # stamina
#     while stamina > 0:
#       # won't enter this loop ever. The function will always return False.
#         response = raw_input(" Enter a move 1.Hit 2.attack 3.fight 4.run")
#         # chose a response from ( hit, attack, fight and run)
#         # fight scene
#         if "hit" in response or "attack" in response:
#             less = randint(0, stamina)
#             stamina  -= 1 
#             print stamina# subtract random int from stamina
#             report(stamina) # see function above
#         elif "fight" in response:
#             print "Fight how? You have no weapons, silly space traveler!"
#         elif "run" in response:
#             print "Sadly, there is nowhere to run.",
#             print "The spaceship is not very big."
#         else:
#             print "The alien zaps you with its powerful ray gun!"
#             return True
#     return False

# print "A threatening alien wants to fight you!"
# # quotes at the end.

# # call the function - what it returns will be the value of alive
# alive = fight( stamina )

# if alive: # means if alive == True
#     print "\nThe alien lives on, and you, sadly, do not.\n"
# else:
#     print "\nThe alien has been vanquished. Good work!\n"

# #############################################################################
# my_file = open("others.txt")
# file_data = my_file.read()
# print file_data
# my_file.close()

# my_file2 = open("people.txt", "w")
# my_file2.write("Abhishek - Gurgaon\n")
# my_file2.write("""Ranveer - Delhi \n priyanka - shimla
# neela - delhi
# sashi - jaipur
# sarika - delhi
# deepti - shimla
# harshad - delhi
# trishna - delhi
# pradeep - jaipur
# sekhar - delhi
# nand - delhi
# anoop - delhi
# balwinder - jaipur""")
# my_file2.close()b.write("["ahj","asd","asd","asds","asdf"]
# print my_file2


# Mentee courses
# # Iss text ko people1-exercise.txt ke naam ki file mein save karo.
# people =open("people.txt","w")
# people.write("""rishabh - meerut
# imtiyaz - delhi
# nilima - cochin
# rati - shimla
# ayishah - delhi
# raghu - shimla
# naseer - kanpur
# karthikeyan - delhi
# salma - jaipur
# pankaj - delhi
# brijesh - delhi
# govind - delhi
# puneet - shimla
# siddhi - delhi
# suman - jaipur
# rajeev - shimla
# mohinder - delhi
# rajendra - jaipur
# priyanka - shimla
# neela - delhi
# sashi - jaipur
# sarika - delhi
# deepti - shimla
# harshad - delhi
# trishna - raipur
# pradeep - jaipur
# sekhar - delhi
# nand - delhi
# anoop - delhi
# balwinder - tokyo""")
# people.close()

#########################################################333
# people =open("people.txt","w")
# people.write("""rishabh - meerut
# imtiyaz - delhi
# nilima - cochin
# rati - shimla
# ayishah - delhi
# raghu - shimla
# naseer - kanpur
# karthikeyan - delhi
# salma - jaipur
# pankaj - delhi
# brijesh - delhi
# govind - delhi
# puneet - shimla
# siddhi - delhi
# suman - jaipur
# rajeev - shimla
# mohinder - delhi
# rajendra - jaipur
# priyanka - shimla
# neela - delhi
# sashi - jaipur
# sarika - delhi
# deepti - shimla
# harshad - delhi
# trishna - raipur
# pradeep - jaipur
# sekhar - delhi
# nand - delhi
# anoop - delhi
# balwinder - tokyo""")
# people=open("people.txt")
# a=people.read()
# b=a.count("\n")
# print(b+1)
#####################################################################3
# banks_list = ["Kotak", "HDFC", "RBL", "SBI", "Bank of Baroda"]
# a=open("people.txt","w")
# for i in banks_list:
# 	a.write(i+"\n")
################################################################333

# a=open("question.txt")
# for i in a.read().split("\n"):
# 	if "delhi" in  i:
# 		n=open("delhi.txt","a")
# 		n.write(i+"\n")
# 	elif "shimla" in i:
# 		n=open("shimla.txt","a")
# 		n.write(i+"\n")
# 	else:
# 		n=open("others.txt","a")
# 		n.write(i+"\n")

# #############################################
# def encrypt():
#   message = raw_input("Enter the message you want to encrypt")
#   ascii_message = [ord(char)+3 for char in message]
#   encrypt_message = [ chr(char) for char in ascii_message]  
#   print ''.join(encrypt_message)

# def decrypt():
#   message = raw_input("Enter the message you want to decrypt")
#   ascii_message = [ord(char)-3 for char in message]
#   decrypt_message = [ chr(char) for char in ascii_message]  
#   print ''.join(decrypt_message)

# flag = True
# while flag == True:
# 	choice = raw_input("What do you want to do? \n1. Encrypt a message 2. Decrypt a message \nEnter e or d respectively!")
# 	if choice == 'e':
# 		encrypt()
# 	elif choice == 'd':
# 		decrypt()    
# 	else:
# 	    play_again = raw_input("Do you want to try agian or Do you want to exit? (Y/N)")
# 	    if play_again == 'Y':
# 	        continue
# 	    elif play_again == 'N':
# 	        break
######################################################################3
# import random
# def getSecretNum(numDigits):
# # Returns a string that is numDigits long, made up of unique random digits.
# 	numbers = list(range(10))
# 	random.shuffle(numbers)
# 	secretNum = ''
# 	for i in range(numDigits):
# 		secretNum=secretNum+str(numbers[i])
# 	print secretNum
# 	return secretNum

# def getClues(guess, secretNum):
# # Returns a string with the pico, fermi, None clues to the user.

# 	if guess == (secretNum):
# 		return 'You got it!'
# 	clue = []
# 	for i in range(len(str(guess))):
# 		if guess[i] == secretNum[i]:
# 			clue.append('Fermi')
# 		elif guess[i] in secretNum:
# 			clue.append('Pico')
# 		else:
# 			clue.append('None')
# 	return ''.join(clue)

# def isOnlyDigits(num):
# # Returns True if num is a string made up only of digits. Otherwise returns False.
# 	if len(num) !=3:
# 		print "enter only 3 digits no "
# 		return False
# 	else:
# 		return True

	

# def playAgain():
# 	# This function returns True if the player wants to play again, otherwise it returns False.
# 	play = raw_input("Do you want to play again? Yes or No?") 
# 	return play

# NUMDIGITS = 3
# MAXGUESS = 10

# print('I am thinking of a %s-digit number. Try to guess what it is.' % (NUMDIGITS))
# print('Here are some clues:')
# print('When I say:    That means:')
# print('  Pico         One digit is correct but in the wrong position.')
# print('  Fermi        One digit is correct and in the right position.')
# print('  None       No digit is correct.')

# numGuesses=1
# secretNum= getSecretNum(NUMDIGITS)
# print('I have thought up a number. You have %s guesses to get it.' % (MAXGUESS))
# while True:
# 	guess=int(input('enter : '))
# 	if numGuesses <= MAXGUESS:
# 		if isOnlyDigits(str(guess))==True:
# 			print 'Guess : ' + str(numGuesses)
# 			clue = getClues(str(guess), str(secretNum))
# 			print clue
# 		else:
# 			break
# 	numGuesses += 1
# 	if guess == int(secretNum):
# 		break
# 	else:
# 		print"Guess Again"
# 	if numGuesses > MAXGUESS:
# 		print 'You ran out of guesses. The answer was ' , secretNum
# 		if not playAgain()=="y":
# 			break
# 		else:
# 			numGuesses=1
	######################################################################
# xt ko save karein.


# Uske baad aapne jiss directory mein users.json save kiya hai, usse directory mein yeh python ka code save kariye ek dusri file mein.

# import json
# with open('user.json') as data_file:    
#     data = json.load(data_file)

# users = data['users']

# for user in users:
#     data = json.load(data_file)

# users = data['users']

# 	# counter = 0
# print ("users full name is " + user['firstName'] + ' ' + user['lastName'])
# # while counter < len(user['details']):
# print ("users mobile number is " , user['details']['mobileNo'])
# print ("users age  is " , user['details']['age'])
# print ("users city is " + user['details']['City'])

####################################################################
# a=int (input("enter the num  "))
# for i in range(1,a,1):
# 	if i%3==0 or i%5==0:
# 		print(i)


#########################################3
# a=int(input("enter "))
# if a%4==0 and a%100!=0 or a%400==0 :
# 	print("asdfghj")
# else:
# 	print("ghj")
# print("asdfghj") if  a%4==0 and a%100!=0 or a%400==0 else print("ghj")

###############################
# a=int(input("enter "))
# b=2
# c=a
# d=1
# e=1
# for i in (0,3,1):
# 	a=a+b
# 	# b=b+1
# 	print(a)
# for i in (0,3,1):
# 	c=c-e
# 	e=d+1
# 	print(c)


#######################################
# a=int(input("enter the year  "))
# b=1
# c=a
# d=0
# e=0
# for i  in range(0,16,1):
# 	a=a+b
# 	# print(a)
# 	if a%4==0 and a%100!=0 or a%400==0:
# 		print(a)
# 		d+=1
# 	if d>2:
# 		break
# for i in range(0,16,1):
# 	c=c-b
# 	if c%4==0 and c%100!=0 or c%400==0:
# 		print(c)
# 		e+=1
# 	if e>2:
# 		break	
##########################################
# a=input("enter the number ")
# b=a.split(" ")
# print(b)
# c=0
# s=int(''.join(b))
# print (s)
# for i in range(len(b)):
# 	d=int(b[i])*int(b[i])*int(b[i])
# 	c=c+d
# print(c)
# if s==c:
# 	print("armstrong number")
# else:
# 	print("not")

######################################
# a=input("enter the number ")
# b=0
# c=len(a)
# for i in a:
# 	b+=(int(i)**c)
# print("armstrong") if int(a)==b else print("not")	


##########################################
# z=int(input('enter a no: '))
# a=1
# while a<z:
#     s=0
#     for i in range(1,a,1):
#         if a%i==0:
#             s=s+i
#     if s==a:
#         print (s) 
#     a+=1 
################################33
# a=input("      ")
# if "ing" in a and "ly" in a:
# 	print(a)
# elif "ing" in a:
# 	print(a+"ly")
# else:
# 	print(a+"ing")

# #######################################
# a=input("enter :   ")
# c=len(a)
# if c>1:
# 	d=a[0]+a[1]+a[-2]+a[-1]
# 	print(d)
# elif c==2:
# 	print(a+a)
# else:
# 	print("empty")

########################################

# a=input("      ")
# if "ing" in a and "ly" in a:
# 	print(a)
# elif "ing" in a:
# 	b=a.replace("ing","ly")
# 	print(b)
# else:
# 	print(a+"ing")

##########################################
# a=int(input("    "))
# b=0
# c=1
# for i in range(a):
# 	if b%2==0:
# 		print(b)
# 	# print(b)
# 	d=b
# 	b=c
# 	c=d+c
	
	# print(d)
	
#########################################################	
# a=0
# c=0
# b=int(input("enter  "))
# for i in range(1,b+1,1):
# 	c=c+i
# 	a=a+(i**2)
# e=c**2
# print(a)
# print(e)
# f=e-a
# print(f)
################################
# a=int(input("enter "))
# b=1
# for i in range(1,a+1,1):
# 	b=b*i
# print(b)
#######################################
# a=input("enter ")
# b=0
# for i in a:
# 	b=b+int(i)
# 	print(b)
#############################################
# a=input("enter ")
# d=0
# for i in a:
# 	b=1
# 	for j in range(1,int(i)+1,1):
# 		b=b*int(j)
# 	# print(b)
# 	d=d+b
# print(d)
###################################
# a=input("enter ")
# b=list(a[:: -1])
# # for i in b:
# # x=len(b)
# for x in range(len(b)):
# 	if "0" in b[0]:
# 		b.remove(b[0])
# print(''.join(b))	

	



####################################
# a=int(input("enter the num    "))
# b=int(input("enter the power  "))
# c=a**b
# print(c)
# e=0
# for i in str(c):
# 	e=int(i)+e
# print(e)
#######################################
# a=input("enter    ")
# b=a.split(" ")
# b=list(b)
# print(b)
# c=0
# r=0
# for i in b:
# 	c=str(c)+i
# 	r=r+1
# print(r)
#########################################
# a=input("enter    ")
# b=a.split(" ")
# print(  b)
# c=["zero","one","two","three","four","five","six","seven","eight","nine"]
# d=[0,1,2,3,4,5,6,7,8,9]
# x=0
# for i in b:
# 	if i in c:
# 			e=c.index(i)
# 			f=d[e]
# 			x=x+e
# print(x)		

################################################
# a="asdfAAAAghjkASDFyuxcvgbhj."
# b=a.capitalize()
# b=a.casefold()
# b=a.center(50)
# b=a.count("A")
# b=a.endwith(".")

# print(b)	
# ################################
# book={
# 	"one":1,
# 	"two":2,
# 	"three":3,
# 	"four":4,
# 	"five":5,
# 	"six":6,
# 	"seven":7,
# 	"eight":8,
# 	"nine":9,
# 	"zero":0
# }
# a=input("enter  ")
# # b=a.split(" ")
# # print(b)
# b=0
# for i in book:
# 	if i in a:
# 		c=book[i]
# 		b=c+b
# print(b)



# amount = 5500
# if amount<= 2000:
#     discount = (amount * .5)
#     print ("Paid Amount: ", amount-discount)
# elif amount >=5000 and amount <=6000:
#     discount = (amount * .25)
#     print ("Paid Amount: ", amount-discount)
# if amount >= 10000:
#     discount = (amount * .35)
#     print ("Paid Amount: ", amount-discount)
# else:
#     discount = (amount *.50)
#     print ("Paid Amount: ", amount-discount)
# c = 0
# d = 1

# while c < 3:
#     c = c + 1
#     d = d * c
#     print "Loop Ke Andar", c, d
# else:
#     print "Loop Ke Bahar", c, d

# counter = 0
# string = "navgurukul"
# while (counter < len(string)):
#     if string[counter] == "g":
#         break
    
#     print(string[counter])
#     counter += 1

# print("The end", string[counter])
# var = 10
# while var > 0:              
#    print 'Current variable value :', var
#    var = var - 1
#    if var == 5:
#       break

# print "Good bye!"
# i = 0
# while(i<5):
#     j = 0
#     while(j<5): #loop2
#         if (j > 3): 
#             break 
#         else:
#             print "*", 
#         j = j + 1    
#     print ''
#     i = i + 1
# a = 0
# while(a<6):
#     b = 0
#     while(b<6):
#         if (a == b):
#             break
#         print '*',
#         b = b + 1
#     print ''
#     a = a + 1

# x = 10
# while(x<20):
#     if (x == 15):
#         break
#     if (x % 2 == 0):
#         x = x + 1
#         continue
#     print x
# #     x = x + 1
# a = [32, 23, 46, 19, 90, 12, 23, 95, 100, 1]

# l = len(a)
# i=0
# while (i < l/2):
#     a[i] = a[l-i-1]
#     i=i+1

# print a
# a = [32, 23, 46, 19, 90, 12, 23, 95, 100, 1]
# l = len(a)
# i = 0
# s = 0
# m1 = a[0]
# m2 = a[0]
# while (i < l):
#     s += a[i]00.33
#     if a[i] > m1:
#         m1 = a[i]
#     if a[i] < m1:
#         m2 = a[i]
#     i = i + 1
# print (s, m1, m2)
# list = ['a', 'b', 'c', 'd', 'e']
# print list[4:]
# print list[10:]
# print list[1:]
# print list[1:4]
# list = [1,2]*3
# # print list
# list1 = [100, 101, 102, 103, 104, 105, 106 ,107, 108, 109] #statement 1
# # print "index of element 105 is : ", list1.index(105) 
# my_string = ["delhi","bangalore","hyderabad"]
# i = 0
# string = []
# while(i<len(my_string)):
#     string.append(my_string[i].upper())
#     i = i+1
    
# # my_string = string
# print (string)
# my_string = 'hello world'
# i = 0
# while(i<len(my_string)):
# 	print (my_string)
#     	my_string = 'ng'
#     	i = i+1

# def b():
#     return 3

# def c():
    
#     return 7 * b()

# def a():
#     return(b() + c())


# print a()
# print b()
# print c()

# n = 10
# def a(n):
#     return n+2

# # print a(4)
# def sum1(n):
#     if (n==0):
#         return 0
#     return sum1(n-1) + n

# print sum1(6)




# def fib(n):
#     if (n==0):
#         return 1
#     elif (n==1):
#         return 1
#     else:
#         return fib(n-1)+fib(n-2)

# print fib(6)






# def fib(n):
#     if (n==0):
#         return 1
#     elif (n==1):
#         return 1
#     else:
#         return fib(n-1)+fib(n-2)

# print fib(6)


# def fib_series(n):
#     if (n==1):
#         return [1, 1]
#     else:
#         series = fib_series(n-1)
#         return [series[0] + series[1]] + series

# # print fib_series(8)
# def hcf(a,b):
#     if(b==0):
#         return a
#     else:
#         return hcf(b,a%b)

# print hcf(120, 100)

# def a(l):
#     al = len(l)
#     i = 0
#     while(i<al/2):
#         i += 1
#         l[i] = l[al-i -1]


# example = [3, 9, 1, 2, 7]
# a(example)
# print example


# ################################################
# def calc(a, b, operator):
# 	if operator == '+':
# 		return a + b
# 	elif operator == '*':
# 		return a * b
# 	elif operator == '/':
# 		return a / b
# 	elif operator == '-':
# 		return a - b
# 	else:
# 		print "Unsupoorted operator"
# calc(1,2,"+")		

############################################################################
# banks_list = ["Kotak", "HDFC", "RBL", "SBI", "Bank of Baroda"]
# print banks_list
# print type(banks_list)



# mixed_list = ["rahul", 12, 9.0, "kaavay", "shivam", 1]
# print type(mixed_list)

# numbers=[50, 40, 23, 70, 56, 12, 5, 10, 7]
# r=0
# for i in numbers:
# 	r=r+1
# print(r)


# numbers=[50, 40, 23, 70, 56, 12, 5, 10, 7]
# r=0
# for i in numbers:
# 	if 20 < i < 40:
# 		r=r+1
# 		print(i,r)



# numbers=[50, 40, 23, 70, 56, 12, 5, 10, 7]
# a=numbers[0]
# for i in numbers:
# 	if a < i:
# 		a=i
# print(a)	





# numbers=[50, 40, 23, 70, 56, 12, 5, 10, 7]
# numbers.remove(max(numbers))
# print(max(numbers))

#######################################################################################################
# a=int(input("date"))
# b=int(input("month"))
# c=int(input("year"))
# import datetime
# d=datetime.date.today()
# print(d)
# e=datetime.date(c,b,a)
# print(e.year)
# f=d-e
# import itertools

# f=365
# for i in range(2018,2019):
# 	for j in range(1,13):

# 		if (i%4==0 and i%100!=0) or i %400==0:
# 			if j==2:
# 				f-=29
# 			elif j%2==0:
# 				f-=30
# 			else:
# 				f-=31
# 		else:
# 			if j==2:
# 				f-=28
# 			elif j%2==0:
# 				f-=30
# 			else:
# 				f-=31		

# print(f)
# g=open("library.py","r")
# c=g.read()
# print(c)
# f={"name":"asdf","bookname":"sdfg","cash":2345}
# (c.append(f))
# print(c)


###################################################################
# a=input("enter the num")
# d=int(a)
# # b=list(a)
# # print(b)
# c=0
# for i in a:
# 	c+=int(i)
# print(c)
# if d%c==0:
# 	print("harashad no")
# else:
# 	print("not ")######################################
#########################################################
# import requests,json,os
# # from
#  # os import path
# if os.path.exists("course.json"):
# 	with open ("course.json","r") as b:
# 		c=json.load(b)
# 		c=json.loads(c)
# 		# c=json.dump(b)
# else:
# 	a=requests.get("http://saral.navgurukul.org/api/courses")
# 	print(a)
# 	with open ("course.json","w+") as b:
# 			c=json.dump(a.text,b)
# 			c=json.loads(a.text)
# 			# print(c)
# d=c["availableCourses"]
# z=[1]
# y=int(input("enter the no     "))
# def api(y):
# 	for i in range(len(d)):
# 		x=d[i]["id"]
# 		z.append(x)
# 	print(z[y])	

# 	e=requests.get("http://saral.navgurukul.org/api/courses/"+str(z[y])+"/exercises")
	
# 	f=json.loads(e.text)
# 	# print(e.text)
# 	h=f["data"]
# 	for i in range(len(h)):
# 		print(h[i]["name"])
# 	x=input("enter F to forward P to previous  m to same  ")
# 	if x=="F":
# 		api(y+1)
# 	elif x=="P":
# 		api(y-1)
# 	elif x=="M":
# 		api(y)		
# api(y)		

#######################################################





# def name(x,y): # 	if x%y==0: # 		print("Ajith") # 	else: # 		print("Subramaniam") # name(4,2) ################################################################## # def my_function(name): #   print(name + "   dsvsbasf") # my_function("Emil") # my_function("Tobias") # my_function("Linus") ######################################################### # def my_function(name): #   print(name + "   dsvsbasf") # my_function("Emil") # my_function("Tobias") # my_function("Linus") ###################################################### # a=input() # b=int(input()) # c=int(input()) # def calculator(a,b,c): # 	if a=="add": # 		a=c+b # 		print(a) # 	elif a=="subtract": # 		a=b-c # 		print(a) # 	elif a=="multiply": # 		a=b*c # 		print(a) # 	elif a=="divide": # 		a=b/c # 		print(a) # print(calculator(a,b,c)) ########################################################### # def my_function(country = "Norway"): #   print("I am from " + country) # my_function("Sweden") # my_function("India") # my_function() # my_function("Brazil") # a=input() # print("i am ",a) # def my_function(food): #   for x in food: #     print(x) # fruits = ["apple", "banana", "cherry"] # my_function(fruits) # ########################################################################## # def my_function(name): # 	for x in name: # 		print(x) # names=["a","b","c"] # my_function(names) ################################################################### # def my_function(x): #   return 5 + x # print(my_function(3)) # print(my_function(5)) # print(my_function(9)) # ################################################################################## # def my_function(child3, child2, child1): #   print("The youngest child is " + child3) # my_function(child1 = "Emil", child2 = "Tobias", child3 = "Linus") ###################################################################### # def ask_question(): # 	print("who is the founder of face book") # 	print("<NAME>") # 	print("<NAME>") # 	print("<NAME>") # 	print("<NAME>") # ask_question() ############################################################################## # def my_function(x): #   print(5 * x) # (my_function(3)) # (my_function(5)) # (my_function(9)) ################################################################# # def ask_question(): # 		print(a,"who is the founder of face book") # 		print("<NAME>") # 		print("<NAME>") # 		print("<NAME>") # 		print("<NAME>") # a=0 # while a < 100: # 	ask_question() # 	a=a+1 ##################################### # numbers_list = [1, 2, 3, 4, 5, 6, 7, 10, -2] # print max(numbers_list) ############################################################ # def say_hello(name): #     print "Hello ", name #     print "Aap kaise ho?" # say_hello("Aatif") # say_hello( "ajith") # say_hello("17") # ########################################################## # def add_numbers(number1, number2): #     print "Main do numbers ko add karunga." #     print number1 + number2 # add_numbers(120, 50) # num_x = 134 # num_y = 22 # add_numbers(num_x, num_y) ################################################ # def say_hello_language(name, language): #     if language == "hindi": #         print "Namaste ", name #         print "Aap kaise ho?" #     elif language == "punjabi": #         print "Sat sri akaal ", name #         print "Tuhada ki haal hai?" #     else: #         print "Hello ", name #         print "How are you?" # say_hello_language("Rishabh", "punjabi") # say_hello_language("Armaan", "english") # say_hello_language("Abhishek", "french") # say_hello_language("Kavay", "hindi") ######################################################## # def name (name): # 	print("what is your name ?") # 	print("my name is ",name) # name("ajith") ############################################################ # def sum(): # 	a=[10,10,10] # 	b=[20,03,83] # 	for i in range(len(a)): # 		print(a[i]+b[i]) # sum() ################################################################ # def even( ): # 	a=[10,19,18,16,16] # 	b=[2,4,6,8,10] # 	for i in range(len(a)): # 		if a[i]%2==0 and b[i]%2==0: # 			print("two no are even") # 		else: # 			print("two no are not even") # even() ############################################################ # def menu(day): #     if day == "monday": #         return "Butter Chicken" #     elif day == "tuesday": #         return "Mutton Chaap" #     else: #         return "Chole Bhature" #     print "Kya main print ho payungi? :-(" # mon_menu = menu("monday") # print mon_menu # tues_menu = menu("tuesday") # print tues_menu # fri_menu = menu("friday") # print fri_menu # ######################################################### # def sum(): # 	a=[10,10,10] # 	b=[20,03,83] # 	for i in range(len(a)): # 		print(a[i]*b[i]) # sum() ############################################################################ # def nav(): # 	for i in range(0,100): # 		if i%3==0 and i%7==0 and i%21==0: # 			print("nav guru kul") # 		elif i%3==0: # 			print("nav") # 		elif i%7==0: # 			print("nav guru") # 		else: # 			print(i) # nav() ########################################################################## # def ajith(): # 	a=int(input("enter the total no students")) # 	b=int(input("enter the amount spend ")) # 	c=a*b # 	if c>=50000: # 		print("more amount") # 	else: # 		print("less amount") # ajith() ######################################################################### # ajith="ajithajith" # print(len(ajith)) # ###########################################################################3 # def pass_word(): # a=input("enter the pass_word") # if (6<len(a)<12) and ("$" in a): # 	if ("2" in a or "8" in a) and ("A" or "Z" in a): # 		print("correct") # 	else: # 		print("ajith") # else: # 	print("wrong") # pass_word() ####################################################################3 # def ajith(): # 	a=int(input("enter the number")) # 	b=int(input("enter the number")) # 	c=int(input("enter the number")) # 	if a>b and a>c: # 		print(a,"graetest") # 	elif b>a and b>c: # 		print(b,"graetest") # 	else: # 		print(c,"graetest") # ajith() ################################################################################ # def factorial(): # 	b=1 # 	a=int(input("enter the num")) # 	for i in range(1,a+1): # 		b=b*i # 		print(b) # factorial() # b=1 # n=int(input("enter the no:")) # for i in range(n,1,-1): # 	b=b*i # print(b) # #####################################################################################3 # def ajith(): # 	list = ["Rishabh", "Rishabh", "Abhishek", "Rishabh", "Divyashish", "Divyashish"] # 	a=[] # 	for i in list: # 		if i not in a: # 			a.append(i) # 	print(a) # ajith() ############################################################################## # def ajith(): # 	list1 = [1, 342, 75, 23, 98] # 	list2 = [75, 23, 98, 12, 78, 10, 1] # 	a=[] # 	for i in list1: # 		for j in list2: # 			if i==j: # 				a.append(i) # 				a.sort() # 	print(a) # ajith() ####################################################################### # def ajith(): # 	list1 = [1, 5, 10, 12, 16, 20] # 	list2 = [1, 2, 10, 13, 16] # 	a=[] # 	for i in list1: # 		for j in list2: # 			if i not in a: # 				a.append(i) # 				if j not in a: # 					a.append(j) # 	print(a) # ajith() # list1 = [1, 5, 10, 12, 16, 20] # list2 = [1, 2, 10, 13, 16] # list1.extend(list2) # a=set(list1) # print(list(a)) ########################################################################### # a=input("enter the num") # d=int(a) # b=list(a) # print(b) # c=0 # for i in a: # 	c+=int(i) # print(c) # if d%c==0: # 	print("harashad no") # else: # 	print("not ") ########################################################################### # a=int (input("  1:")) # i=1 # while True: # 	c=0 # 	for j in range(1,a+1): # 		if i%j==0: # 			c+=1 # 		else: # 			i+=1 # 			break # 	if c==a: # 		print(i) # 		break #################################################################### # big_list = [[1,2,3], [5,8,9], [4,3,77,521,31,311]] # for i in big_list: # 	for j in i: # 		print(j) # 	print("....") # ##################################################### # marks = [[45, 21, 42, 63], [12, 42, 42, 53], [42, 90, 78, 13], [94, 89, 78, 76], [87, 55, 98, 99]] # for i in marks: # 	print(max(i)) ############################################################### # sentence = "NavGurukul is an alternative to higher education reducing the barriers of current formal education system" # print(sentence.split()) ##################################################################### # num = [12, 312, 42, 123, 5, 12, 53, 75, 123, 62, 9] # for i in num: # 	if i>20: # 		print(i) # def numbers_greater_than_twenty(list): # 		counter = 0 # 		while counter < len(list): # 			item = list[counter] # 			if item > 20: # 				list.remove(item) # 				return list # 				num_list = [12, 312, 42, 123, 5, 12, 53, 75, 123, 62, 9] # 				num_list_20 = numbers_greater_than_twenty(num_list) # 				print ("Initial list", num_list) # 				print ("List that doesn't contain numbers greate than 20", new_list) # numbers_greater_than_twenty() ####################################################################from random import randint # def win(): #     print 'You win!' # def lose(): #     print 'You lose!' # while False: #     player_choice = raw_input('What do you pick? (rock, paper, scissors)') #     player_choice.strip() #     random_move = randint(0, 2) #     moves = ['rock', 'paper', 'scissors'] #     computer_choice = option[random_move] #     if player_choice = computer_choice: #         print 'Draw!' #     elif  == 'rock' and coMp == 'scissors': #         win() #     elif  == 'paper' and comp == 'scissors': #         lose() #     elif playe == 'scissors' and comp == 'paper': #         win() #     elif player == 'scissors' and Comp == 'rock': #         lose() #     elif payer == 'paper' and computer == 'rock': #         win() #     elif player ==  and comp == : #         lose() #     aGain = raw_input('Do you want to play again? (y or n)').strip() #     if again == 'n': #         break # ################################################################### # chars =         ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'] # shifted_chars = ['c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','a','b'] # chars =         ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'] # shifted_chars = ['c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','a','b'] # # encrypt_message function defined here but not called # def encrypt_message(plain_msg): # # this fucnction takes "plain_msg" as an argument and print/return the encrypted message. The "plain_msg" is tranfered into "encrypted_msg" using "shifted_chars" list. Example, if plain_msg = "ng" then n => p, g => i  and hence encrypted_msg = "pi" #     encrypted_msg = "" #     for character in plain_msg: #       # for character in msg #         if character in chars: #             char_index = chars.index(character) #             new_char = shifted_chars[char_index] #             encrypted_msg = encrypted_msg + new_char #         else: #             encrypted_msg = encrypted_msg + character #     print encrypted_msg # # decrypt_message function defined here but not called # def decrypt_message(encrypted_msg): # # this fucnction takes "encrypted_msg" as an argument and print/return the encrypted message. The "encrypted_msg" is tranfered into "decrypted_msg" using "shifted_chars" list. Example, if encrypted_msg = "pi" then p => n, i => g  and hence decrypted_msg = "ng" #     decrypted_msg = "" #     for character in encrypted_msg: #         if character in shifted_chars: #             char_index =shifted_chars.index(character) #             new_char = chars[char_index] #             decrypted_msg = decrypted_msg + new_char #         else: #             decrypted_msg = decrypted_msg + character #     print decrypted_msg # # methods should return or print the new messages. # ############################################### Code starts from here ################################################## # flag = True # while flag == True: # 	choice = raw_input("What do you want to do? 1. Encrypt a message 2. Decrypt a message  Enter `e` or `d` respectively!") # 	if choice == 'e': # 	    plain_message = raw_input("Enter message to encrypt??") # 	    encrypt_message(plain_message) # 	elif choice == 'd': # 	    encrypted_msg = raw_input("Enter message to decrypt?") # 	    decrypt_message(encrypted_msg) # 	else: # 	    play_again = raw_input("Do you want to try agian or Do you want to exit? (Y/N)") # 	    if play_again == 'Y': # 	        continue # 	    elif play_again == 'N': # 	        break # from random import randint # allows you to generate a random number # # variables for the alien # alive = True # stamina = 10 # # this function runs each time you attack the alien # def report(s): # # syntactic error in if else statements #     if s > 8: #         print "The alien is strong! It resists your pathetic attack!" #     elif s > 5: #         print "With a loud grunt, the alien stands firm." #     elif s > 3: #         print "Your attack seems to be having an effect! The alien stumbles!" #     elif s > 0: #         print "The alien is certain to fall soon! It staggers and reels!" #     else: #         print "That's it! The alien is finished!" # # report(s) # # main function - accepts your input for fight with the alien # def fight(stamina): # stamina #     while stamina > 0: #       # won't enter this loop ever. The function will always return False. #         response = raw_input(" Enter a move 1.Hit 2.attack 3.fight 4.run") #         # chose a response from ( hit, attack, fight and run) #         # fight scene #         if "hit" in response or "attack" in response: #             less = randint(0, stamina) #             stamina  -= 1 #             print stamina# subtract random int from stamina #             report(stamina) # see function above #         elif "fight" in response: #             print "Fight how? You have no weapons, silly space traveler!" #         elif "run" in response: #             print "Sadly, there is nowhere to run.", #             print "The spaceship is not very big." #         else: #             print "The alien zaps you with its powerful ray gun!" #             return True #     return False # print "A threatening alien wants to fight you!" # # quotes at the end. # # call the function - what it returns will be the value of alive # alive = fight( stamina ) # if alive: # means if alive == True #     print "\nThe alien lives on, and you, sadly, do not.\n" # else: #     print "\nThe alien has been vanquished. Good work!\n" # ############################################################################# # my_file = open("others.txt") # file_data = my_file.read() # print file_data # my_file.close() # my_file2 = open("people.txt", "w") # my_file2.write("Abhishek - Gurgaon\n") # my_file2.write("""Ranveer - Delhi \n priyanka - shimla # neela - delhi # sashi - jaipur # sarika - delhi # deepti - shimla # harshad - delhi # trishna - delhi # pradeep - jaipur # sekhar - delhi # nand - delhi # anoop - delhi # balwinder - jaipur""") # my_file2.close()b.write("["ahj","asd","asd","asds","asdf"] # print my_file2 # Mentee courses # # Iss text ko people1-exercise.txt ke naam ki file mein save karo. # people =open("people.txt","w") # people.write("""rishabh - meerut # imtiyaz - delhi # nilima - cochin # rati - shimla # ayishah - delhi # raghu - shimla # naseer - kanpur # karthikeyan - delhi # salma - jaipur # pankaj - delhi # brijesh - delhi # govind - delhi # puneet - shimla # siddhi - delhi # suman - jaipur # rajeev - shimla # mohinder - delhi # rajendra - jaipur # priyanka - shimla # neela - delhi # sashi - jaipur # sarika - delhi # deepti - shimla # harshad - delhi # trishna - raipur # pradeep - jaipur # sekhar - delhi # nand - delhi # anoop - delhi # balwinder - tokyo""") # people.close() #########################################################333 # people =open("people.txt","w") # people.write("""rishabh - meerut # imtiyaz - delhi # nilima - cochin # rati - shimla # ayishah - delhi # raghu - shimla # naseer - kanpur # karthikeyan - delhi # salma - jaipur # pankaj - delhi # brijesh - delhi # govind - delhi # puneet - shimla # siddhi - delhi # suman - jaipur # rajeev - shimla # mohinder - delhi # rajendra - jaipur # priyanka - shimla # neela - delhi # sashi - jaipur # sarika - delhi # deepti - shimla # harshad - delhi # trishna - raipur # pradeep - jaipur # sekhar - delhi # nand - delhi # anoop - delhi # balwinder - tokyo""") # people=open("people.txt") # a=people.read() # b=a.count("\n") # print(b+1) #####################################################################3 # banks_list = ["Kotak", "HDFC", "RBL", "SBI", "Bank of Baroda"] # a=open("people.txt","w") # for i in banks_list: # 	a.write(i+"\n") ################################################################333 # a=open("question.txt") # for i in a.read().split("\n"): # 	if "delhi" in  i: # 		n=open("delhi.txt","a") # 		n.write(i+"\n") # 	elif "shimla" in i: # 		n=open("shimla.txt","a") # 		n.write(i+"\n") # 	else: # 		n=open("others.txt","a") # 		n.write(i+"\n") # ############################################# # def encrypt(): #   message = raw_input("Enter the message you want to encrypt") #   ascii_message = [ord(char)+3 for char in message] #   encrypt_message = [ chr(char) for char in ascii_message] #   print ''.join(encrypt_message) # def decrypt(): #   message = raw_input("Enter the message you want to decrypt") #   ascii_message = [ord(char)-3 for char in message] #   decrypt_message = [ chr(char) for char in ascii_message] #   print ''.join(decrypt_message) # flag = True # while flag == True: # 	choice = raw_input("What do you want to do? \n1. Encrypt a message 2. Decrypt a message \nEnter e or d respectively!") # 	if choice == 'e': # 		encrypt() # 	elif choice == 'd': # 		decrypt() # 	else: # 	    play_again = raw_input("Do you want to try agian or Do you want to exit? (Y/N)") # 	    if play_again == 'Y': # 	        continue # 	    elif play_again == 'N': # 	        break ######################################################################3 # import random # def getSecretNum(numDigits): # # Returns a string that is numDigits long, made up of unique random digits. # 	numbers = list(range(10)) # 	random.shuffle(numbers) # 	secretNum = '' # 	for i in range(numDigits): # 		secretNum=secretNum+str(numbers[i]) # 	print secretNum # 	return secretNum # def getClues(guess, secretNum): # # Returns a string with the pico, fermi, None clues to the user. # 	if guess == (secretNum): # 		return 'You got it!' # 	clue = [] # 	for i in range(len(str(guess))): # 		if guess[i] == secretNum[i]: # 			clue.append('Fermi') # 		elif guess[i] in secretNum: # 			clue.append('Pico') # 		else: # 			clue.append('None') # 	return ''.join(clue) # def isOnlyDigits(num): # # Returns True if num is a string made up only of digits. Otherwise returns False. # 	if len(num) !=3: # 		print "enter only 3 digits no " # 		return False # 	else: # 		return True # def playAgain(): # 	# This function returns True if the player wants to play again, otherwise it returns False. # 	play = raw_input("Do you want to play again? Yes or No?") # 	return play # NUMDIGITS = 3 # MAXGUESS = 10 # print('I am thinking of a %s-digit number. Try to guess what it is.' % (NUMDIGITS)) # print('Here are some clues:') # print('When I say:    That means:') # print('  Pico         One digit is correct but in the wrong position.') # print('  Fermi        One digit is correct and in the right position.') # print('  None       No digit is correct.') # numGuesses=1 # secretNum= getSecretNum(NUMDIGITS) # print('I have thought up a number. You have %s guesses to get it.' % (MAXGUESS)) # while True: # 	guess=int(input('enter : ')) # 	if numGuesses <= MAXGUESS: # 		if isOnlyDigits(str(guess))==True: # 			print 'Guess : ' + str(numGuesses) # 			clue = getClues(str(guess), str(secretNum)) # 			print clue # 		else: # 			break # 	numGuesses += 1 # 	if guess == int(secretNum): # 		break # 	else: # 		print"Guess Again" # 	if numGuesses > MAXGUESS: # 		print 'You ran out of guesses. The answer was ' , secretNum # 		if not playAgain()=="y": # 			break # 		else: # 			numGuesses=1 ###################################################################### # xt ko save karein. # Uske baad aapne jiss directory mein users.json save kiya hai, usse directory mein yeh python ka code save kariye ek dusri file mein. # import json # with open('user.json') as data_file: #     data = json.load(data_file) # users = data['users'] # for user in users: #     data = json.load(data_file) # users = data['users'] # 	# counter = 0 # print ("users full name is " + user['firstName'] + ' ' + user['lastName']) # # while counter < len(user['details']): # print ("users mobile number is " , user['details']['mobileNo']) # print ("users age  is " , user['details']['age']) # print ("users city is " + user['details']['City']) #################################################################### # a=int (input("enter the num  ")) # for i in range(1,a,1): # 	if i%3==0 or i%5==0: # 		print(i) #########################################3 # a=int(input("enter ")) # if a%4==0 and a%100!=0 or a%400==0 : # 	print("asdfghj") # else: # 	print("ghj") # print("asdfghj") if  a%4==0 and a%100!=0 or a%400==0 else print("ghj") ############################### # a=int(input("enter ")) # b=2 # c=a # d=1 # e=1 # for i in (0,3,1): # 	a=a+b # 	# b=b+1 # 	print(a) # for i in (0,3,1): # 	c=c-e # 	e=d+1 # 	print(c) ####################################### # a=int(input("enter the year  ")) # b=1 # c=a # d=0 # e=0 # for i  in range(0,16,1): # 	a=a+b # 	# print(a) # 	if a%4==0 and a%100!=0 or a%400==0: # 		print(a) # 		d+=1 # 	if d>2: # 		break # for i in range(0,16,1): # 	c=c-b # 	if c%4==0 and c%100!=0 or c%400==0: # 		print(c) # 		e+=1 # 	if e>2: # 		break ########################################## # a=input("enter the number ") # b=a.split(" ") # print(b) # c=0 # s=int(''.join(b)) # print (s) # for i in range(len(b)): # 	d=int(b[i])*int(b[i])*int(b[i]) # 	c=c+d # print(c) # if s==c: # 	print("armstrong number") # else: # 	print("not") ###################################### # a=input("enter the number ") # b=0 # c=len(a) # for i in a: # 	b+=(int(i)**c) # print("armstrong") if int(a)==b else print("not") ########################################## # z=int(input('enter a no: ')) # a=1 # while a<z: #     s=0 #     for i in range(1,a,1): #         if a%i==0: #             s=s+i #     if s==a: #         print (s) #     a+=1 ################################33 # a=input("      ") # if "ing" in a and "ly" in a: # 	print(a) # elif "ing" in a: # 	print(a+"ly") # else: # 	print(a+"ing") # ####################################### # a=input("enter :   ") # c=len(a) # if c>1: # 	d=a[0]+a[1]+a[-2]+a[-1] # 	print(d) # elif c==2: # 	print(a+a) # else: # 	print("empty") ######################################## # a=input("      ") # if "ing" in a and "ly" in a: # 	print(a) # elif "ing" in a: # 	b=a.replace("ing","ly") # 	print(b) # else: # 	print(a+"ing") ########################################## # a=int(input("    ")) # b=0 # c=1 # for i in range(a): # 	if b%2==0: # 		print(b) # 	# print(b) # 	d=b # 	b=c # 	c=d+c # print(d) ######################################################### # a=0 # c=0 # b=int(input("enter  ")) # for i in range(1,b+1,1): # 	c=c+i # 	a=a+(i**2) # e=c**2 # print(a) # print(e) # f=e-a # print(f) ################################ # a=int(input("enter ")) # b=1 # for i in range(1,a+1,1): # 	b=b*i # print(b) ####################################### # a=input("enter ") # b=0 # for i in a: # 	b=b+int(i) # 	print(b) ############################################# # a=input("enter ") # d=0 # for i in a: # 	b=1 # 	for j in range(1,int(i)+1,1): # 		b=b*int(j) # 	# print(b) # 	d=d+b # print(d) ################################### # a=input("enter ") # b=list(a[:: -1]) # # for i in b: # # x=len(b) # for x in range(len(b)): # 	if "0" in b[0]: # 		b.remove(b[0]) # print(''.join(b)) #################################### # a=int(input("enter the num    ")) # b=int(input("enter the power  ")) # c=a**b # print(c) # e=0 # for i in str(c): # 	e=int(i)+e # print(e) ####################################### # a=input("enter    ") # b=a.split(" ") # b=list(b) # print(b) # c=0 # r=0 # for i in b: # 	c=str(c)+i # 	r=r+1 # print(r) ######################################### # a=input("enter    ") # b=a.split(" ") # print(  b) # c=["zero","one","two","three","four","five","six","seven","eight","nine"] # d=[0,1,2,3,4,5,6,7,8,9] # x=0 # for i in b: # 	if i in c: # 			e=c.index(i) # 			f=d[e] # 			x=x+e # print(x) ################################################ # a="asdfAAAAghjkASDFyuxcvgbhj." # b=a.capitalize() # b=a.casefold() # b=a.center(50) # b=a.count("A") # b=a.endwith(".") # print(b) # ################################ # book={ # 	"one":1, # 	"two":2, # 	"three":3, # 	"four":4, # 	"five":5, # 	"six":6, # 	"seven":7, # 	"eight":8, # 	"nine":9, # 	"zero":0 # } # a=input("enter  ") # # b=a.split(" ") # # print(b) # b=0 # for i in book: # 	if i in a: # 		c=book[i] # 		b=c+b # print(b) # amount = 5500 # if amount<= 2000: #     discount = (amount * .5) #     print ("Paid Amount: ", amount-discount) # elif amount >=5000 and amount <=6000: #     discount = (amount * .25) #     print ("Paid Amount: ", amount-discount) # if amount >= 10000: #     discount = (amount * .35) #     print ("Paid Amount: ", amount-discount) # else: #     discount = (amount *.50) #     print ("Paid Amount: ", amount-discount) # c = 0 # d = 1 # while c < 3: #     c = c + 1 #     d = d * c #     print "Loop Ke Andar", c, d # else: #     print "Loop Ke Bahar", c, d # counter = 0 # string = "navgurukul" # while (counter < len(string)): #     if string[counter] == "g": #         break #     print(string[counter]) #     counter += 1 # print("The end", string[counter]) # var = 10 # while var > 0: #    print 'Current variable value :', var #    var = var - 1 #    if var == 5: #       break # print "Good bye!" # i = 0 # while(i<5): #     j = 0 #     while(j<5): #loop2 #         if (j > 3): #             break #         else: #             print "*", #         j = j + 1 #     print '' #     i = i + 1 # a = 0 # while(a<6): #     b = 0 #     while(b<6): #         if (a == b): #             break #         print '*', #         b = b + 1 #     print '' #     a = a + 1 # x = 10 # while(x<20): #     if (x == 15): #         break #     if (x % 2 == 0): #         x = x + 1 #         continue #     print x # #     x = x + 1 # a = [32, 23, 46, 19, 90, 12, 23, 95, 100, 1] # l = len(a) # i=0 # while (i < l/2): #     a[i] = a[l-i-1] #     i=i+1 # print a # a = [32, 23, 46, 19, 90, 12, 23, 95, 100, 1] # l = len(a) # i = 0 # s = 0 # m1 = a[0] # m2 = a[0] # while (i < l): #     s += a[i]00.33 #     if a[i] > m1: #         m1 = a[i] #     if a[i] < m1: #         m2 = a[i] #     i = i + 1 # print (s, m1, m2) # list = ['a', 'b', 'c', 'd', 'e'] # print list[4:] # print list[10:] # print list[1:] # print list[1:4] # list = [1,2]*3 # # print list # list1 = [100, 101, 102, 103, 104, 105, 106 ,107, 108, 109] #statement 1 # # print "index of element 105 is : ", list1.index(105) # my_string = ["delhi","bangalore","hyderabad"] # i = 0 # string = [] # while(i<len(my_string)): #     string.append(my_string[i].upper()) #     i = i+1 # # my_string = string # print (string) # my_string = 'hello world' # i = 0 # while(i<len(my_string)): # 	print (my_string) #     	my_string = 'ng' #     	i = i+1 # def b(): #     return 3 # def c(): #     return 7 * b() # def a(): #     return(b() + c()) # print a() # print b() # print c() # n = 10 # def a(n): #     return n+2 # # print a(4) # def sum1(n): #     if (n==0): #         return 0 #     return sum1(n-1) + n # print sum1(6) # def fib(n): #     if (n==0): #         return 1 #     elif (n==1): #         return 1 #     else: #         return fib(n-1)+fib(n-2) # print fib(6) # def fib(n): #     if (n==0): #         return 1 #     elif (n==1): #         return 1 #     else: #         return fib(n-1)+fib(n-2) # print fib(6) # def fib_series(n): #     if (n==1): #         return [1, 1] #     else: #         series = fib_series(n-1) #         return [series[0] + series[1]] + series # # print fib_series(8) # def hcf(a,b): #     if(b==0): #         return a #     else: #         return hcf(b,a%b) # print hcf(120, 100) # def a(l): #     al = len(l) #     i = 0 #     while(i<al/2): #         i += 1 #         l[i] = l[al-i -1] # example = [3, 9, 1, 2, 7] # a(example) # print example # ################################################ # def calc(a, b, operator): # 	if operator == '+': # 		return a + b # 	elif operator == '*': # 		return a * b # 	elif operator == '/': # 		return a / b # 	elif operator == '-': # 		return a - b # 	else: # 		print "Unsupoorted operator" # calc(1,2,"+") ############################################################################ # banks_list = ["Kotak", "HDFC", "RBL", "SBI", "Bank of Baroda"] # print banks_list # print type(banks_list) # mixed_list = ["rahul", 12, 9.0, "kaavay", "shivam", 1] # print type(mixed_list) # numbers=[50, 40, 23, 70, 56, 12, 5, 10, 7] # r=0 # for i in numbers: # 	r=r+1 # print(r) # numbers=[50, 40, 23, 70, 56, 12, 5, 10, 7] # r=0 # for i in numbers: # 	if 20 < i < 40: # 		r=r+1 # 		print(i,r) # numbers=[50, 40, 23, 70, 56, 12, 5, 10, 7] # a=numbers[0] # for i in numbers: # 	if a < i: # 		a=i # print(a) # numbers=[50, 40, 23, 70, 56, 12, 5, 10, 7] # numbers.remove(max(numbers)) # print(max(numbers)) ####################################################################################################### # a=int(input("date")) # b=int(input("month")) # c=int(input("year")) # import datetime # d=datetime.date.today() # print(d) # e=datetime.date(c,b,a) # print(e.year) # f=d-e # import itertools # f=365 # for i in range(2018,2019): # 	for j in range(1,13): # 		if (i%4==0 and i%100!=0) or i %400==0: # 			if j==2: # 				f-=29 # 			elif j%2==0: # 				f-=30 # 			else: # 				f-=31 # 		else: # 			if j==2: # 				f-=28 # 			elif j%2==0: # 				f-=30 # 			else: # 				f-=31 # print(f) # g=open("library.py","r") # c=g.read() # print(c) # f={"name":"asdf","bookname":"sdfg","cash":2345} # (c.append(f)) # print(c) ################################################################### # a=input("enter the num") # d=int(a) # # b=list(a) # # print(b) # c=0 # for i in a: # 	c+=int(i) # print(c) # if d%c==0: # 	print("harashad no") # else: # 	print("not ")###################################### ######################################################### # import requests,json,os # # from #  # os import path # if os.path.exists("course.json"): # 	with open ("course.json","r") as b: # 		c=json.load(b) # 		c=json.loads(c) # 		# c=json.dump(b) # else: # 	a=requests.get("http://saral.navgurukul.org/api/courses") # 	print(a) # 	with open ("course.json","w+") as b: # 			c=json.dump(a.text,b) # 			c=json.loads(a.text) # 			# print(c) # d=c["availableCourses"] # z=[1] # y=int(input("enter the no     ")) # def api(y): # 	for i in range(len(d)): # 		x=d[i]["id"] # 		z.append(x) # 	print(z[y]) # 	e=requests.get("http://saral.navgurukul.org/api/courses/"+str(z[y])+"/exercises") # 	f=json.loads(e.text) # 	# print(e.text) # 	h=f["data"] # 	for i in range(len(h)): # 		print(h[i]["name"]) # 	x=input("enter F to forward P to previous  m to same  ") # 	if x=="F": # 		api(y+1) # 	elif x=="P": # 		api(y-1) # 	elif x=="M": # 		api(y) # api(y) #######################################################