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

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

class C:
    def __init__(self, txt: str):
        self.x: J = None
        self.p: G = None
        self.w: J = None
        self.z: B = None
        self.u: B = None
        self.t: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: C = None
        self.y: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.v: G = None
        self.w: D = None
        self.u: D = None
        self.x: C = None
        self.y: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: I = None
        self.s: A = None
        self.z: A = None
        self.r: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: J = None
        self.p: G = None
        self.w: J = None
        self.z: B = None
        self.u: B = None
        self.t: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: C = None
        self.y: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.v: G = None
        self.w: D = None
        self.u: D = None
        self.x: C = None
        self.y: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: I = None
        self.s: A = None
        self.z: A = None
        self.r: B = None
        self.txt = txt

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

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