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

class B:
    def __init__(self, txt: str):
        self.q: J = None
        self.p: D = None
        self.s: I = None
        self.w: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: J = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: C = None
        self.z: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.w: J = None
        self.z: I = None
        self.p: D = None
        self.r: A = None
        self.o: A = None
        self.s: A = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: H = None
        self.r: J = None
        self.z: B = None
        self.v: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: E = None
        self.o: F = None
        self.q: I = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: J = None
        self.p: D = None
        self.s: I = None
        self.w: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: J = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: C = None
        self.z: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.w: J = None
        self.z: I = None
        self.p: D = None
        self.r: A = None
        self.o: A = None
        self.s: A = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: H = None
        self.r: J = None
        self.z: B = None
        self.v: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: E = None
        self.o: F = None
        self.q: I = None
        self.txt = txt

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

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