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

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

class C:
    def __init__(self, txt: str):
        self.r: J = None
        self.u: J = None
        self.v: H = None
        self.o: E = None
        self.p: E = None
        self.w: I = None
        self.q: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.y: A = None
        self.o: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.q: I = None
        self.s: I = None
        self.t: J = None
        self.u: A = None
        self.p: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: C = None
        self.o: B = None
        self.x: B = None
        self.v: G = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.o: F = None
        self.y: H = None
        self.z: G = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: J = None
        self.u: J = None
        self.v: H = None
        self.o: E = None
        self.p: E = None
        self.w: I = None
        self.q: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.y: A = None
        self.o: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.q: I = None
        self.s: I = None
        self.t: J = None
        self.u: A = None
        self.p: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: C = None
        self.o: B = None
        self.x: B = None
        self.v: G = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.o: F = None
        self.y: H = None
        self.z: G = None
        self.txt = txt

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

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

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