class A:
    def __init__(self, txt: str):
        self.p: C = None
        self.u: F = None
        self.y: I = None
        self.o: I = None
        self.w: H = None
        self.z: C = None
        self.r: E = None
        self.x: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: C = None
        self.u: E = None
        self.q: I = None
        self.p: I = None
        self.r: E = None
        self.w: F = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.p: I = None
        self.w: E = None
        self.q: I = None
        self.u: E = None
        self.x: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: I = None
        self.q: C = None
        self.z: D = None
        self.w: A = None
        self.x: I = None
        self.p: D = None
        self.u: H = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: C = None
        self.u: E = None
        self.q: I = None
        self.p: I = None
        self.r: E = None
        self.w: F = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.p: I = None
        self.w: E = None
        self.q: I = None
        self.u: E = None
        self.x: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: I = None
        self.q: C = None
        self.z: D = None
        self.w: A = None
        self.x: I = None
        self.p: D = None
        self.u: H = None
        self.txt = txt

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

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

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

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

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