class A:
    def __init__(self, txt: str):
        self.w: H = None
        self.q: I = None
        self.o: C = None
        self.r: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: I = None
        self.w: D = None
        self.q: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: F = None
        self.y: C = None
        self.t: A = None
        self.s: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.x: D = None
        self.r: D = None
        self.t: F = None
        self.y: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: A = None
        self.y: E = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: I = None
        self.w: D = None
        self.q: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.u: F = None
        self.y: C = None
        self.t: A = None
        self.s: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.x: D = None
        self.r: D = None
        self.t: F = None
        self.y: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: A = None
        self.y: E = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

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

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