import re



'''s='hi i am an indian guy'

p='an'

r='is'

if re.match(p,s):

    print('match found')

else:

    print(' match not found')

if re.search(p,s):

     print('search found')

else:

    print('not found sir.')

    

n=re.sub(p,r,s)

print(n)

'''

#2

s='hidedede'

p='hi(de)+'

if re.match(p,s):

    print('match found')

else:

    print(' match not found')

if re.search(p,s):

     print('search found')

else:

    print('not found sir.')



s=input()

p="[0-9]+ [a-z]+[ A-Z]"

if re.match(p,s):

    print('match found')

else:

    print(' match not found')

if re.search(p,s):

     print('search found')

else:

    print('not found sir.')


'''
#3

s='lxi 2020 , I am an  indian   guy'

p='^[a-z]+ \d+ '

m=re.findall(p,s)

print(m)

for n in m:

    print(n)



#4

    s=input()

    p=r'\b\w\w'

    m=re.findall(p,s)

    for i in m:

        print(i)

        

#5

s=input()

p=r'\b[0-9]+\W+[0-9 a-z A-Z]+\W+[0-9]+'

m=re.findall(p,s)

print(m)



#6

s=input()

p=r'\b[aeiou]+\w*'

m=re.findall(p,s)

for i in m:

        print(i)

#7

s=(input())

p=r'\b[7]+\d{9}'

m=re.findall(p,s)

for i in m:

        print(i)'''

