class A:
    def __init__(self, txt: str):
        self.x: I = None
        self.t: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: J = None
        self.v: C = None
        self.r: H = None
        self.u: E = None
        self.o: H = None
        self.q: J = None
        self.y: F = None
        self.w: J = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: G = None
        self.o: I = None
        self.t: J = None
        self.q: F = None
        self.y: A = None
        self.s: E = None
        self.u: A = None
        self.w: A = None
        self.v: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.t: I = None
        self.w: A = None
        self.x: E = None
        self.q: B = None
        self.r: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: C = None
        self.o: E = None
        self.z: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: B = None
        self.q: F = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: J = None
        self.v: C = None
        self.r: H = None
        self.u: E = None
        self.o: H = None
        self.q: J = None
        self.y: F = None
        self.w: J = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: G = None
        self.o: I = None
        self.t: J = None
        self.q: F = None
        self.y: A = None
        self.s: E = None
        self.u: A = None
        self.w: A = None
        self.v: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.t: I = None
        self.w: A = None
        self.x: E = None
        self.q: B = None
        self.r: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: C = None
        self.o: E = None
        self.z: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: B = None
        self.q: F = None
        self.txt = txt

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

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

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

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