class A:
    def __init__(self, txt: str):
        self.r: E = None
        self.o: D = None
        self.p: F = None
        self.w: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: A = None
        self.q: A = None
        self.u: A = None
        self.p: F = None
        self.x: G = None
        self.v: E = None
        self.y: E = None
        self.o: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.w: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.p: A = None
        self.t: B = None
        self.txt = txt

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

f = A("f")
n = B("n")
d = C("d")
m = D("m")
j = E("j")
a = F("a")
e = G("e")
g = H("g")
l = A("l")
b = A("b")

f.r = j
f.o = m
f.w = m
f.p = a
n.z = e
d.s = e
m.t = l
m.u = l
m.q = b
m.p = a
m.x = e
m.v = j
m.y = j
m.o = g
j.q = f
j.w = n
a.o = m
a.z = m
a.y = j
a.s = n
a.u = l
a.p = l
a.r = d
e.o = n
e.t = n
e.p = f
g.t = j
g.p = j
g.o = l
g.s = n
g.v = n
g.y = n
g.u = m
g.z = m
l.r = j
l.o = m
l.w = m
l.p = a
b.r = j
b.o = m
b.w = m
b.p = a
assert a.z.x.p.p.txt == "
class A:
    def __init__(self, txt: str):
        self.r: E = None
        self.o: D = None
        self.p: F = None
        self.w: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: A = None
        self.q: A = None
        self.u: A = None
        self.p: F = None
        self.x: G = None
        self.v: E = None
        self.y: E = None
        self.o: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.w: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.p: A = None
        self.t: B = None
        self.txt = txt

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

f = A("f")
n = B("n")
d = C("d")
m = D("m")
j = E("j")
a = F("a")
e = G("e")
g = H("g")
l = A("l")
b = A("b")

f.r = j
f.o = m
f.w = m
f.p = a
n.z = e
d.s = e
m.t = l
m.u = l
m.q = b
m.p = a
m.x = e
m.v = j
m.y = j
m.o = g
j.q = f
j.w = n
a.o = m
a.z = m
a.y = j
a.s = n
a.u = l
a.p = l
a.r = d
e.o = n
e.t = n
e.p = f
g.t = j
g.p = j
g.o = l
g.s = n
g.v = n
g.y = n
g.u = m
g.z = m
l.r = j
l.o = m
l.w = m
l.p = a
b.r = j
b.o = m
b.w = m
b.p = a
assert a.z.x.p.p.txt == "a"