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

class B:
    def __init__(self, txt: str):
        self.z: H = None
        self.y: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: E = None
        self.v: A = None
        self.z: H = None
        self.p: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: H = None
        self.s: B = None
        self.o: B = None
        self.x: B = None
        self.w: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: G = None
        self.p: C = None
        self.o: C = None
        self.r: H = None
        self.x: H = None
        self.q: H = None
        self.y: D = None
        self.t: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: A = None
        self.y: D = None
        self.t: G = None
        self.v: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: H = None
        self.y: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: E = None
        self.v: A = None
        self.z: H = None
        self.p: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: H = None
        self.s: B = None
        self.o: B = None
        self.x: B = None
        self.w: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: G = None
        self.p: C = None
        self.o: C = None
        self.r: H = None
        self.x: H = None
        self.q: H = None
        self.y: D = None
        self.t: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: A = None
        self.y: D = None
        self.t: G = None
        self.v: C = None
        self.txt = txt

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

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