class A:
    def __init__(self, txt: str):
        self.z: C = None
        self.v: I = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.v: E = None
        self.u: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: E = None
        self.v: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.o: A = None
        self.y: C = None
        self.w: J = None
        self.u: J = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.p: A = None
        self.u: G = None
        self.r: D = None
        self.y: D = None
        self.txt = txt

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

a.z = l
a.v = n
d.v = j
d.w = g
d.t = g
d.s = a
d.r = a
d.q = c
d.p = n
l.t = a
l.y = a
l.w = i
l.z = i
l.u = n
l.q = h
l.r = m
l.o = j
h.x = i
h.v = g
h.u = g
g.q = a
m.o = g
m.v = d
i.u = n
j.r = i
j.o = a
j.y = l
j.w = c
j.u = c
n.q = a
c.p = a
c.u = i
c.r = h
c.y = h
assert l.z.u.q.v.q.z.t.z.txt == "
class A:
    def __init__(self, txt: str):
        self.z: C = None
        self.v: I = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.v: E = None
        self.u: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: E = None
        self.v: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.o: A = None
        self.y: C = None
        self.w: J = None
        self.u: J = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.p: A = None
        self.u: G = None
        self.r: D = None
        self.y: D = None
        self.txt = txt

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

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