class A:
    def __init__(self, txt: str):
        self.o: E = None
        self.p: C = None
        self.s: J = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: I = None
        self.w: J = None
        self.v: F = None
        self.y: I = None
        self.u: I = None
        self.x: J = None
        self.z: I = None
        self.p: I = None
        self.r: F = None
        self.t: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: C = None
        self.r: H = None
        self.s: C = None
        self.o: A = None
        self.t: J = None
        self.w: F = None
        self.x: B = None
        self.z: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: H = None
        self.v: I = None
        self.txt = txt

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

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: I = None
        self.w: J = None
        self.v: F = None
        self.y: I = None
        self.u: I = None
        self.x: J = None
        self.z: I = None
        self.p: I = None
        self.r: F = None
        self.t: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: C = None
        self.r: H = None
        self.s: C = None
        self.o: A = None
        self.t: J = None
        self.w: F = None
        self.x: B = None
        self.z: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: H = None
        self.v: I = None
        self.txt = txt

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

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

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

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

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

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