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

class B:
    def __init__(self, txt: str):
        self.r: C = None
        self.u: E = None
        self.t: E = None
        self.p: C = None
        self.s: E = None
        self.z: F = None
        self.x: D = None
        self.y: F = None
        self.v: C = None
        self.q: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.r: G = None
        self.u: F = None
        self.p: J = None
        self.x: I = None
        self.w: J = None
        self.v: F = None
        self.txt = txt

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

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.o: G = None
        self.u: C = None
        self.x: F = None
        self.p: E = None
        self.txt = txt

a = A("a")
g = B("g")
m = C("m")
i = D("i")
n = E("n")
d = F("d")
k = G("k")
j = H("j")
c = I("c")
l = J("l")

a.t = n
a.v = n
a.s = m
a.w = m
a.x = g
a.u = i
a.q = k
a.r = j
a.o = c
a.z = d
g.r = m
g.p = m
g.v = m
g.q = m
g.u = n
g.t = n
g.s = n
g.z = d
g.y = d
g.x = i
m.v = j
i.z = m
i.r = k
i.u = d
i.v = d
i.p = l
i.w = l
i.x = c
n.q = g
d.q = m
d.u = k
k.p = a
k.u = i
k.q = l
k.y = l
k.o = g
k.z = g
k.x = d
k.r = m
k.w = c
j.u = m
j.r = m
j.x = m
j.y = m
j.o = k
j.s = k
j.q = d
j.t = g
c.r = n
c.p = d
c.z = m
c.v = g
l.o = k
l.u = m
l.x = d
l.p = n
assert a.u.z.v.t.t.q.z.q.txt == "
class A:
    def __init__(self, txt: str):
        self.t: E = None
        self.s: C = None
        self.x: B = None
        self.u: D = None
        self.w: C = None
        self.q: G = None
        self.v: E = None
        self.r: H = None
        self.o: I = None
        self.z: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: C = None
        self.u: E = None
        self.t: E = None
        self.p: C = None
        self.s: E = None
        self.z: F = None
        self.x: D = None
        self.y: F = None
        self.v: C = None
        self.q: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.r: G = None
        self.u: F = None
        self.p: J = None
        self.x: I = None
        self.w: J = None
        self.v: F = None
        self.txt = txt

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

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.o: G = None
        self.u: C = None
        self.x: F = None
        self.p: E = None
        self.txt = txt

a = A("a")
g = B("g")
m = C("m")
i = D("i")
n = E("n")
d = F("d")
k = G("k")
j = H("j")
c = I("c")
l = J("l")

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