class A:
    def __init__(self, txt: str):
        self.v: I = None
        self.t: B = None
        self.w: H = None
        self.s: E = None
        self.u: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: H = None
        self.s: G = None
        self.y: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.z: A = None
        self.s: I = None
        self.y: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.v: J = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: J = None
        self.w: J = None
        self.r: I = None
        self.s: C = None
        self.t: I = None
        self.u: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: A = None
        self.z: J = None
        self.y: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: H = None
        self.y: C = None
        self.s: H = None
        self.u: G = None
        self.p: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: H = None
        self.s: G = None
        self.y: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.z: A = None
        self.s: I = None
        self.y: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.v: J = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: J = None
        self.w: J = None
        self.r: I = None
        self.s: C = None
        self.t: I = None
        self.u: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: A = None
        self.z: J = None
        self.y: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: H = None
        self.y: C = None
        self.s: H = None
        self.u: G = None
        self.p: G = None
        self.txt = txt

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

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