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

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.v: F = None
        self.u: I = None
        self.q: F = None
        self.o: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.y: H = None
        self.r: I = None
        self.v: B = None
        self.t: E = None
        self.o: J = None
        self.q: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.z: B = None
        self.r: F = None
        self.o: B = None
        self.t: F = None
        self.p: G = None
        self.u: I = None
        self.v: A = None
        self.txt = txt

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

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.q: I = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.v: F = None
        self.u: I = None
        self.q: F = None
        self.o: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.y: H = None
        self.r: I = None
        self.v: B = None
        self.t: E = None
        self.o: J = None
        self.q: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.z: B = None
        self.r: F = None
        self.o: B = None
        self.t: F = None
        self.p: G = None
        self.u: I = None
        self.v: A = None
        self.txt = txt

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

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.q: I = None
        self.txt = txt

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

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