class A:
    def __init__(self, txt: str):
        self.s: F = None
        self.u: E = None
        self.q: I = None
        self.p: D = None
        self.w: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: D = None
        self.w: E = None
        self.y: F = None
        self.p: C = None
        self.t: I = None
        self.z: I = None
        self.q: I = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: B = None
        self.w: I = None
        self.q: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.q: D = None
        self.o: I = None
        self.u: B = None
        self.s: B = None
        self.p: G = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: D = None
        self.w: E = None
        self.y: F = None
        self.p: C = None
        self.t: I = None
        self.z: I = None
        self.q: I = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: B = None
        self.w: I = None
        self.q: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.q: D = None
        self.o: I = None
        self.u: B = None
        self.s: B = None
        self.p: G = None
        self.txt = txt

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

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

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

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

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