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

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.u: J = None
        self.s: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: B = None
        self.q: I = None
        self.p: E = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.u: J = None
        self.s: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: B = None
        self.q: I = None
        self.p: E = None
        self.txt = txt

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

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

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

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