class A:
    def __init__(self, txt: str):
        self.x: H = None
        self.t: E = None
        self.u: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: G = None
        self.y: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: H = None
        self.r: H = None
        self.t: F = None
        self.q: F = None
        self.u: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.u: A = None
        self.r: D = None
        self.v: E = None
        self.s: D = None
        self.z: B = None
        self.p: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: F = None
        self.x: E = None
        self.t: C = None
        self.o: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: G = None
        self.y: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: H = None
        self.r: H = None
        self.t: F = None
        self.q: F = None
        self.u: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.u: A = None
        self.r: D = None
        self.v: E = None
        self.s: D = None
        self.z: B = None
        self.p: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: F = None
        self.x: E = None
        self.t: C = None
        self.o: E = None
        self.txt = txt

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

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