class A:
    def __init__(self, txt: str):
        self.v: E = None
        self.o: G = None
        self.q: G = None
        self.w: H = None
        self.x: I = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: H = None
        self.t: F = None
        self.y: F = None
        self.u: J = None
        self.s: J = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.q: J = None
        self.u: C = None
        self.p: I = None
        self.o: D = None
        self.z: I = None
        self.r: G = None
        self.w: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: G = None
        self.p: E = None
        self.w: A = None
        self.s: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: D = None
        self.p: I = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: H = None
        self.t: F = None
        self.y: F = None
        self.u: J = None
        self.s: J = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.q: J = None
        self.u: C = None
        self.p: I = None
        self.o: D = None
        self.z: I = None
        self.r: G = None
        self.w: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: G = None
        self.p: E = None
        self.w: A = None
        self.s: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: D = None
        self.p: I = None
        self.txt = txt

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

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