The entire network is under the inspection and direct control of the Decepticons. They have learned our language through the World Wide Web and can easily understand the messages which are being sent. Sam is trying to send the information to Autobots to locate “ALL SPARK” which is the only source of energy that can be used to create universe. He is bit cautious in sending the message. He is sending the messages in a form of special pattern of string that contains important message in form of substrings. But Decepticons have learnt to recognize the Data Mining and string comparison patterns. He is sending a big message in form of a string (say M) and let there are N smaller substrings. Decepticons have to find whether each of these N substrings is a sub-string of M. All strings consist of only alphanumeric characters.

-----Input-----
Input to the program consists of two line. The first line contains the string M (where size of M should be <=40). The next line contain a string S.

-----Output-----
Output should consist of a line with a character 'Y'/'N' indicating whether the string S is a sub-string of String M or not.

-----Example-----
Input:
techtrishna online event
onlin
Output:
Y

Starter code:

Solutions:
x = input()
y = input()
z = x.find(y)
if z == -1 :
 print('N')
else :
 print('Y')

m=input().strip().lower()
s=input().strip().lower()

if m.find(s)==-1:
 print('N')
else:
 print('Y')

import sys

def main():
 s = sys.stdin.readline
 a = s().strip()
 b = s().strip()
 if b in a:
  print("Y")
 else:
  print("N")

def __starting_point():
 main()

__starting_point()