class A:
    def __init__(self, txt: str):
        self.y: H = None
        self.o: B = None
        self.v: I = None
        self.x: J = None
        self.w: D = None
        self.q: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: A = None
        self.z: E = None
        self.p: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.z: A = None
        self.u: J = None
        self.r: A = None
        self.x: F = None
        self.s: F = None
        self.y: G = None
        self.v: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.p: B = None
        self.o: A = None
        self.s: B = None
        self.w: G = None
        self.y: C = None
        self.r: E = None
        self.v: A = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.t: A = None
        self.q: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: A = None
        self.z: E = None
        self.p: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.z: A = None
        self.u: J = None
        self.r: A = None
        self.x: F = None
        self.s: F = None
        self.y: G = None
        self.v: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.p: B = None
        self.o: A = None
        self.s: B = None
        self.w: G = None
        self.y: C = None
        self.r: E = None
        self.v: A = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.t: A = None
        self.q: E = None
        self.txt = txt

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

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