from sys import stdin def res fin open input txt lns fin readlines fin

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
from sys import stdin
def res():
# fin = open('input.txt', 'r')
# lns = fin.readlines()
# find = lns.pop(0).strip()
find = stdin.readline().strip()
find_section = find.split(".")[0][2:]
find_value=""
find_key = find.split(".")[1]
current_section = ""
current_key = ""
current_value = ""
# for s in lns:
tag = False
for s in stdin.readlines():
str = s.replace(' ', '').strip()
d = str.find('#')
if d != -1:
str = str[:d]
if str != "":
if str[0] == "[":
current_section = str[1:str.find("]")]
current_key = ""
current_value = ""
else:
current_key = str.split("=")[0]
current_value = str.split("=")[1]
if current_section == find_section and current_key == find_key:
find_value = current_value
tag = True
# fin.close()
if tag:
return find_section + "." + find_key + " is equal to " + '"' + find_value + '"'
return find_section + "." + find_key + " is not found"
print(res())