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

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.p: I = None
        self.y: H = None
        self.z: C = None
        self.q: G = None
        self.t: D = None
        self.x: I = None
        self.v: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: D = None
        self.s: I = None
        self.t: B = None
        self.y: E = None
        self.v: D = None
        self.o: E = None
        self.w: J = None
        self.q: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: J = None
        self.z: C = None
        self.o: B = None
        self.r: A = None
        self.s: D = None
        self.y: B = None
        self.q: I = None
        self.t: B = None
        self.v: C = None
        self.u: F = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.w: B = None
        self.p: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.p: I = None
        self.y: H = None
        self.z: C = None
        self.q: G = None
        self.t: D = None
        self.x: I = None
        self.v: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: D = None
        self.s: I = None
        self.t: B = None
        self.y: E = None
        self.v: D = None
        self.o: E = None
        self.w: J = None
        self.q: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: J = None
        self.z: C = None
        self.o: B = None
        self.r: A = None
        self.s: D = None
        self.y: B = None
        self.q: I = None
        self.t: B = None
        self.v: C = None
        self.u: F = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.w: B = None
        self.p: B = None
        self.txt = txt

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

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