class A:
    def __init__(self, txt: str):
        self.y: J = None
        self.r: I = None
        self.v: J = None
        self.p: C = None
        self.s: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: J = None
        self.z: C = None
        self.v: J = None
        self.x: G = None
        self.t: C = None
        self.y: E = None
        self.q: F = None
        self.s: J = None
        self.o: H = None
        self.w: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.s: J = None
        self.z: B = None
        self.v: B = None
        self.p: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: C = None
        self.u: H = None
        self.o: C = None
        self.y: E = None
        self.v: F = None
        self.w: F = None
        self.s: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: B = None
        self.o: C = None
        self.x: A = None
        self.s: E = None
        self.u: A = None
        self.p: I = None
        self.t: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: D = None
        self.y: D = None
        self.u: A = None
        self.v: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: J = None
        self.z: C = None
        self.v: J = None
        self.x: G = None
        self.t: C = None
        self.y: E = None
        self.q: F = None
        self.s: J = None
        self.o: H = None
        self.w: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.s: J = None
        self.z: B = None
        self.v: B = None
        self.p: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: C = None
        self.u: H = None
        self.o: C = None
        self.y: E = None
        self.v: F = None
        self.w: F = None
        self.s: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: B = None
        self.o: C = None
        self.x: A = None
        self.s: E = None
        self.u: A = None
        self.p: I = None
        self.t: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: D = None
        self.y: D = None
        self.u: A = None
        self.v: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: H = None
        self.txt = txt

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

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