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

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

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

class D:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.z: H = None
        self.q: F = None
        self.w: B = None
        self.o: C = None
        self.v: F = None
        self.r: B = None
        self.s: D = None
        self.u: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.w: F = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.z: H = None
        self.q: F = None
        self.w: B = None
        self.o: C = None
        self.v: F = None
        self.r: B = None
        self.s: D = None
        self.u: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.w: F = None
        self.txt = txt

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

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