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

class B:
    def __init__(self, txt: str):
        self.q: G = None
        self.s: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.z: B = None
        self.q: C = None
        self.t: G = None
        self.p: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.z: D = None
        self.o: E = None
        self.s: E = None
        self.r: G = None
        self.w: A = None
        self.x: C = None
        self.v: D = None
        self.txt = txt

b = A("b")
n = B("n")
h = C("h")
e = D("e")
a = E("a")
f = F("f")
k = G("k")
j = H("j")

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

class B:
    def __init__(self, txt: str):
        self.q: G = None
        self.s: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.z: B = None
        self.q: C = None
        self.t: G = None
        self.p: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.z: D = None
        self.o: E = None
        self.s: E = None
        self.r: G = None
        self.w: A = None
        self.x: C = None
        self.v: D = None
        self.txt = txt

b = A("b")
n = B("n")
h = C("h")
e = D("e")
a = E("a")
f = F("f")
k = G("k")
j = H("j")

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