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

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

class C:
    def __init__(self, txt: str):
        self.p: J = None
        self.v: I = None
        self.r: J = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.p: A = None
        self.r: A = None
        self.v: I = None
        self.z: G = None
        self.w: F = None
        self.s: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: H = None
        self.y: G = None
        self.q: F = None
        self.s: E = None
        self.z: B = None
        self.r: H = None
        self.x: J = None
        self.t: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: D = None
        self.t: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: J = None
        self.v: I = None
        self.r: J = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.p: A = None
        self.r: A = None
        self.v: I = None
        self.z: G = None
        self.w: F = None
        self.s: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: H = None
        self.y: G = None
        self.q: F = None
        self.s: E = None
        self.z: B = None
        self.r: H = None
        self.x: J = None
        self.t: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: D = None
        self.t: C = None
        self.txt = txt

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

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