class A:
    def __init__(self, txt: str):
        self.t: D = None
        self.q: G = None
        self.w: F = None
        self.o: G = None
        self.y: H = None
        self.r: B = None
        self.z: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: E = None
        self.p: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.p: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.q: B = None
        self.w: H = None
        self.p: F = None
        self.v: D = None
        self.y: H = None
        self.x: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.t: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: E = None
        self.p: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.p: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.q: B = None
        self.w: H = None
        self.p: F = None
        self.v: D = None
        self.y: H = None
        self.x: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.t: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

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

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