class A:
    def __init__(self, txt: str):
        self.t: F = None
        self.q: G = None
        self.s: I = None
        self.u: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: F = None
        self.x: A = None
        self.r: E = None
        self.q: J = None
        self.w: H = None
        self.u: A = None
        self.v: F = None
        self.s: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.u: D = None
        self.o: I = None
        self.z: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: I = None
        self.x: C = None
        self.z: B = None
        self.q: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: B = None
        self.s: E = None
        self.v: E = None
        self.x: J = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.x: E = None
        self.u: I = None
        self.r: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: F = None
        self.x: A = None
        self.r: E = None
        self.q: J = None
        self.w: H = None
        self.u: A = None
        self.v: F = None
        self.s: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.u: D = None
        self.o: I = None
        self.z: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: I = None
        self.x: C = None
        self.z: B = None
        self.q: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: B = None
        self.s: E = None
        self.v: E = None
        self.x: J = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.x: E = None
        self.u: I = None
        self.r: C = None
        self.txt = txt

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

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