class A:
    def __init__(self, txt: str):
        self.v: J = None
        self.o: F = None
        self.r: D = None
        self.z: J = None
        self.p: I = None
        self.t: E = None
        self.q: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.y: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.z: J = None
        self.y: G = None
        self.v: H = None
        self.w: J = None
        self.s: C = None
        self.p: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: B = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.y: I = None
        self.u: E = None
        self.s: D = None
        self.w: H = None
        self.x: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.y: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.z: J = None
        self.y: G = None
        self.v: H = None
        self.w: J = None
        self.s: C = None
        self.p: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: B = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.y: I = None
        self.u: E = None
        self.s: D = None
        self.w: H = None
        self.x: H = None
        self.txt = txt

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

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