class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.v: E = None
        self.q: D = None
        self.r: E = None
        self.p: C = None
        self.o: D = None
        self.s: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: C = None
        self.v: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: A = None
        self.o: F = None
        self.u: G = None
        self.v: A = None
        self.s: C = None
        self.y: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: C = None
        self.u: E = None
        self.t: E = None
        self.p: C = None
        self.y: A = None
        self.z: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.z: D = None
        self.u: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: F = None
        self.txt = txt

b = A("b")
l = B("l")
n = C("n")
k = D("k")
g = E("g")
m = F("m")
d = G("d")
i = D("i")
j = D("j")
h = C("h")

b.t = l
b.v = g
b.r = g
b.q = i
b.p = h
b.o = k
b.s = m
l.z = h
l.v = j
n.q = b
n.v = b
n.o = m
n.u = d
n.s = h
n.y = g
k.o = h
k.p = h
k.u = g
k.t = g
k.y = b
k.z = n
g.v = l
g.z = j
g.u = m
m.r = d
d.z = m
i.o = h
i.p = h
i.u = g
i.t = g
i.y = b
i.z = n
j.o = n
j.p = n
j.z = n
j.u = g
j.t = g
j.y = b
h.q = b
h.v = b
h.o = m
h.u = d
h.s = n
h.y = g
assert n.y.z.p.v.q.p.v.txt == "
class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.v: E = None
        self.q: D = None
        self.r: E = None
        self.p: C = None
        self.o: D = None
        self.s: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: C = None
        self.v: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: A = None
        self.o: F = None
        self.u: G = None
        self.v: A = None
        self.s: C = None
        self.y: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: C = None
        self.u: E = None
        self.t: E = None
        self.p: C = None
        self.y: A = None
        self.z: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.z: D = None
        self.u: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: F = None
        self.txt = txt

b = A("b")
l = B("l")
n = C("n")
k = D("k")
g = E("g")
m = F("m")
d = G("d")
i = D("i")
j = D("j")
h = C("h")

b.t = l
b.v = g
b.r = g
b.q = i
b.p = h
b.o = k
b.s = m
l.z = h
l.v = j
n.q = b
n.v = b
n.o = m
n.u = d
n.s = h
n.y = g
k.o = h
k.p = h
k.u = g
k.t = g
k.y = b
k.z = n
g.v = l
g.z = j
g.u = m
m.r = d
d.z = m
i.o = h
i.p = h
i.u = g
i.t = g
i.y = b
i.z = n
j.o = n
j.p = n
j.z = n
j.u = g
j.t = g
j.y = b
h.q = b
h.v = b
h.o = m
h.u = d
h.s = n
h.y = g
assert n.y.z.p.v.q.p.v.txt == "b"