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

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

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

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

class E:
    def __init__(self, txt: str):
        self.p: G = None
        self.x: F = None
        self.r: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: C = None
        self.r: C = None
        self.x: I = None
        self.q: B = None
        self.z: C = None
        self.w: D = None
        self.u: C = None
        self.p: B = None
        self.o: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: C = None
        self.u: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.y: F = None
        self.o: G = None
        self.z: C = None
        self.s: D = None
        self.txt = txt

m = A("m")
e = B("e")
l = C("l")
n = D("n")
f = E("f")
k = F("k")
c = G("c")
j = H("j")
g = I("g")

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.p: G = None
        self.x: F = None
        self.r: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: C = None
        self.r: C = None
        self.x: I = None
        self.q: B = None
        self.z: C = None
        self.w: D = None
        self.u: C = None
        self.p: B = None
        self.o: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: C = None
        self.u: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.y: F = None
        self.o: G = None
        self.z: C = None
        self.s: D = None
        self.txt = txt

m = A("m")
e = B("e")
l = C("l")
n = D("n")
f = E("f")
k = F("k")
c = G("c")
j = H("j")
g = I("g")

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