class A:
    def __init__(self, txt: str):
        self.x: F = None
        self.p: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.s: F = None
        self.x: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.s: F = None
        self.x: H = None
        self.txt = txt

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

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