class A:
    def __init__(self, txt: str):
        self.v: E = None
        self.o: F = None
        self.z: H = None
        self.t: B = None
        self.y: E = None
        self.w: B = None
        self.x: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.q: A = None
        self.y: H = None
        self.r: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: A = None
        self.o: C = None
        self.s: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.q: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: B = None
        self.v: D = None
        self.y: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.s: C = None
        self.r: G = None
        self.y: E = None
        self.t: D = None
        self.txt = txt

d = A("d")
h = B("h")
e = C("e")
b = D("b")
a = E("a")
j = F("j")
k = G("k")
l = H("l")
n = G("n")

d.v = a
d.y = a
d.o = j
d.z = l
d.t = h
d.w = h
d.x = k
h.o = a
e.t = j
e.q = d
e.y = l
e.r = k
b.t = d
b.o = e
b.s = e
a.r = b
a.q = b
j.y = d
j.t = l
j.q = l
j.o = e
j.z = b
j.p = b
k.x = h
k.y = h
k.v = b
l.o = a
l.y = a
l.s = e
l.r = k
l.t = b
n.x = h
n.y = h
n.v = b
assert n.v.t.y.q.s.r.x.txt == "
class A:
    def __init__(self, txt: str):
        self.v: E = None
        self.o: F = None
        self.z: H = None
        self.t: B = None
        self.y: E = None
        self.w: B = None
        self.x: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.q: A = None
        self.y: H = None
        self.r: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: A = None
        self.o: C = None
        self.s: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.q: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: B = None
        self.v: D = None
        self.y: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.s: C = None
        self.r: G = None
        self.y: E = None
        self.t: D = None
        self.txt = txt

d = A("d")
h = B("h")
e = C("e")
b = D("b")
a = E("a")
j = F("j")
k = G("k")
l = H("l")
n = G("n")

d.v = a
d.y = a
d.o = j
d.z = l
d.t = h
d.w = h
d.x = k
h.o = a
e.t = j
e.q = d
e.y = l
e.r = k
b.t = d
b.o = e
b.s = e
a.r = b
a.q = b
j.y = d
j.t = l
j.q = l
j.o = e
j.z = b
j.p = b
k.x = h
k.y = h
k.v = b
l.o = a
l.y = a
l.s = e
l.r = k
l.t = b
n.x = h
n.y = h
n.v = b
assert n.v.t.y.q.s.r.x.txt == "h"