class A:
    def __init__(self, txt: str):
        self.p: G = None
        self.r: J = None
        self.z: F = None
        self.s: H = None
        self.w: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.v: H = None
        self.z: J = None
        self.s: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: I = None
        self.y: F = None
        self.p: E = None
        self.q: H = None
        self.s: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.y: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.u: D = None
        self.z: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: I = None
        self.q: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.x: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: G = None
        self.v: D = None
        self.u: B = None
        self.o: G = None
        self.w: F = None
        self.x: J = None
        self.z: E = None
        self.t: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: G = None
        self.y: H = None
        self.w: F = None
        self.o: F = None
        self.p: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.v: H = None
        self.z: J = None
        self.s: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: I = None
        self.y: F = None
        self.p: E = None
        self.q: H = None
        self.s: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.y: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.u: D = None
        self.z: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: I = None
        self.q: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.x: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: G = None
        self.v: D = None
        self.u: B = None
        self.o: G = None
        self.w: F = None
        self.x: J = None
        self.z: E = None
        self.t: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: G = None
        self.y: H = None
        self.w: F = None
        self.o: F = None
        self.p: G = None
        self.txt = txt

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

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