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

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

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

class D:
    def __init__(self, txt: str):
        self.y: F = None
        self.z: I = None
        self.w: D = None
        self.x: E = None
        self.v: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: I = None
        self.o: B = None
        self.v: A = None
        self.u: B = None
        self.y: H = None
        self.r: H = None
        self.q: A = None
        self.t: D = None
        self.w: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.q: B = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: F = None
        self.z: I = None
        self.w: D = None
        self.x: E = None
        self.v: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: I = None
        self.o: B = None
        self.v: A = None
        self.u: B = None
        self.y: H = None
        self.r: H = None
        self.q: A = None
        self.t: D = None
        self.w: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.q: B = None
        self.txt = txt

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

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

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

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