class A:
    def __init__(self, txt: str):
        self.s: F = None
        self.y: C = None
        self.o: F = None
        self.p: B = None
        self.u: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: G = None
        self.t: D = None
        self.p: D = None
        self.s: H = None
        self.u: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.z: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.s: G = None
        self.y: D = None
        self.u: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: C = None
        self.s: C = None
        self.x: H = None
        self.t: C = None
        self.o: B = None
        self.v: C = None
        self.w: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: E = None
        self.r: B = None
        self.y: F = None
        self.q: A = None
        self.p: E = None
        self.txt = txt

j = A("j")
f = B("f")
n = C("n")
i = D("i")
d = E("d")
c = F("c")
e = G("e")
b = H("b")
k = B("k")

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

class B:
    def __init__(self, txt: str):
        self.y: G = None
        self.t: D = None
        self.p: D = None
        self.s: H = None
        self.u: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.z: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.s: G = None
        self.y: D = None
        self.u: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: C = None
        self.s: C = None
        self.x: H = None
        self.t: C = None
        self.o: B = None
        self.v: C = None
        self.w: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: E = None
        self.r: B = None
        self.y: F = None
        self.q: A = None
        self.p: E = None
        self.txt = txt

j = A("j")
f = B("f")
n = C("n")
i = D("i")
d = E("d")
c = F("c")
e = G("e")
b = H("b")
k = B("k")

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