class A:
    def __init__(self, txt: str):
        self.r: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.z: C = None
        self.y: C = None
        self.o: A = None
        self.p: I = None
        self.v: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: B = None
        self.s: B = None
        self.q: A = None
        self.p: H = None
        self.t: H = None
        self.u: E = None
        self.r: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.r: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.y: H = None
        self.r: D = None
        self.p: D = None
        self.u: B = None
        self.z: G = None
        self.s: I = None
        self.x: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.y: B = None
        self.v: B = None
        self.o: G = None
        self.z: E = None
        self.w: G = None
        self.u: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: B = None
        self.p: E = None
        self.y: F = None
        self.v: G = None
        self.u: C = None
        self.r: A = None
        self.q: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.z: C = None
        self.y: C = None
        self.o: A = None
        self.p: I = None
        self.v: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: B = None
        self.s: B = None
        self.q: A = None
        self.p: H = None
        self.t: H = None
        self.u: E = None
        self.r: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.r: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.y: H = None
        self.r: D = None
        self.p: D = None
        self.u: B = None
        self.z: G = None
        self.s: I = None
        self.x: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.y: B = None
        self.v: B = None
        self.o: G = None
        self.z: E = None
        self.w: G = None
        self.u: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: B = None
        self.p: E = None
        self.y: F = None
        self.v: G = None
        self.u: C = None
        self.r: A = None
        self.q: B = None
        self.txt = txt

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

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