class A:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: E = None
        self.p: J = None
        self.y: D = None
        self.z: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: J = None
        self.o: D = None
        self.v: J = None
        self.txt = txt

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

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

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.u: D = None
        self.y: A = None
        self.s: F = None
        self.p: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: J = None
        self.o: D = None
        self.v: J = None
        self.txt = txt

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

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

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.u: D = None
        self.y: A = None
        self.s: F = None
        self.p: F = None
        self.txt = txt

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

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