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

class B:
    def __init__(self, txt: str):
        self.w: F = None
        self.z: I = None
        self.o: F = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.q: D = None
        self.s: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: H = None
        self.v: J = None
        self.r: A = None
        self.s: H = None
        self.q: I = None
        self.t: D = None
        self.x: J = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: J = None
        self.x: H = None
        self.s: G = None
        self.v: F = None
        self.z: D = None
        self.o: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: C = None
        self.r: A = None
        self.t: I = None
        self.o: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: F = None
        self.z: I = None
        self.o: F = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.q: D = None
        self.s: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: H = None
        self.v: J = None
        self.r: A = None
        self.s: H = None
        self.q: I = None
        self.t: D = None
        self.x: J = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: J = None
        self.x: H = None
        self.s: G = None
        self.v: F = None
        self.z: D = None
        self.o: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: C = None
        self.r: A = None
        self.t: I = None
        self.o: B = None
        self.txt = txt

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

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