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

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

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

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

class E:
    def __init__(self, txt: str):
        self.x: H = None
        self.t: C = None
        self.q: F = None
        self.r: C = None
        self.v: J = None
        self.s: J = None
        self.u: G = None
        self.y: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: E = None
        self.o: E = None
        self.s: F = None
        self.t: H = None
        self.r: B = None
        self.z: B = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.x: H = None
        self.t: C = None
        self.q: F = None
        self.r: C = None
        self.v: J = None
        self.s: J = None
        self.u: G = None
        self.y: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: E = None
        self.o: E = None
        self.s: F = None
        self.t: H = None
        self.r: B = None
        self.z: B = None
        self.txt = txt

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

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

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