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

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.t: H = None
        self.w: H = None
        self.q: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: D = None
        self.z: J = None
        self.q: D = None
        self.r: H = None
        self.o: J = None
        self.v: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: G = None
        self.z: F = None
        self.x: B = None
        self.v: C = None
        self.p: G = None
        self.q: G = None
        self.u: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: D = None
        self.s: C = None
        self.y: B = None
        self.o: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: B = None
        self.t: D = None
        self.u: D = None
        self.x: B = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.t: E = None
        self.v: G = None
        self.p: F = None
        self.y: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.t: H = None
        self.w: H = None
        self.q: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: D = None
        self.z: J = None
        self.q: D = None
        self.r: H = None
        self.o: J = None
        self.v: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: G = None
        self.z: F = None
        self.x: B = None
        self.v: C = None
        self.p: G = None
        self.q: G = None
        self.u: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: D = None
        self.s: C = None
        self.y: B = None
        self.o: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: B = None
        self.t: D = None
        self.u: D = None
        self.x: B = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.t: E = None
        self.v: G = None
        self.p: F = None
        self.y: E = None
        self.txt = txt

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

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