class A:
    def __init__(self, txt: str):
        self.q: J = None
        self.t: H = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.s: I = None
        self.o: C = None
        self.x: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.r: A = None
        self.w: D = None
        self.y: D = None
        self.t: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: C = None
        self.o: J = None
        self.u: I = None
        self.q: B = None
        self.x: E = None
        self.p: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: I = None
        self.v: H = None
        self.z: C = None
        self.o: I = None
        self.t: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: B = None
        self.z: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: A = None
        self.o: I = None
        self.y: D = None
        self.s: G = None
        self.r: H = None
        self.q: F = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.s: I = None
        self.o: C = None
        self.x: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.r: A = None
        self.w: D = None
        self.y: D = None
        self.t: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: C = None
        self.o: J = None
        self.u: I = None
        self.q: B = None
        self.x: E = None
        self.p: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: I = None
        self.v: H = None
        self.z: C = None
        self.o: I = None
        self.t: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: B = None
        self.z: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: A = None
        self.o: I = None
        self.y: D = None
        self.s: G = None
        self.r: H = None
        self.q: F = None
        self.txt = txt

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

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