class A:
    def __init__(self, txt: str):
        self.x: F = None
        self.w: B = None
        self.t: E = None
        self.s: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.q: I = None
        self.u: A = None
        self.o: D = None
        self.t: A = None
        self.v: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: D = None
        self.z: G = None
        self.p: D = None
        self.v: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: H = None
        self.x: I = None
        self.w: I = None
        self.o: D = None
        self.t: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: G = None
        self.z: C = None
        self.s: G = None
        self.r: D = None
        self.p: E = None
        self.t: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.q: I = None
        self.u: A = None
        self.o: D = None
        self.t: A = None
        self.v: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: D = None
        self.z: G = None
        self.p: D = None
        self.v: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.r: H = None
        self.x: I = None
        self.w: I = None
        self.o: D = None
        self.t: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: G = None
        self.z: C = None
        self.s: G = None
        self.r: D = None
        self.p: E = None
        self.t: E = None
        self.txt = txt

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

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