class A:
    def __init__(self, txt: str):
        self.t: F = None
        self.w: I = None
        self.u: C = None
        self.z: C = None
        self.x: C = None
        self.q: C = None
        self.v: I = None
        self.p: J = None
        self.r: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: H = None
        self.x: F = None
        self.w: H = None
        self.y: I = None
        self.z: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: J = None
        self.y: F = None
        self.z: A = None
        self.u: I = None
        self.q: H = None
        self.t: A = None
        self.s: B = None
        self.v: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: A = None
        self.r: H = None
        self.txt = txt

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: H = None
        self.x: F = None
        self.w: H = None
        self.y: I = None
        self.z: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: J = None
        self.y: F = None
        self.z: A = None
        self.u: I = None
        self.q: H = None
        self.t: A = None
        self.s: B = None
        self.v: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: A = None
        self.r: H = None
        self.txt = txt

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

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

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

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

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