class A:
    def __init__(self, txt: str):
        self.x: H = None
        self.w: B = None
        self.z: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.x: B = None
        self.t: A = None
        self.o: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: D = None
        self.w: F = None
        self.u: D = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.s: A = None
        self.q: D = None
        self.z: B = None
        self.y: C = None
        self.t: E = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.y: F = None
        self.w: F = None
        self.v: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: B = None
        self.t: A = None
        self.o: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: D = None
        self.w: F = None
        self.u: D = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.s: A = None
        self.q: D = None
        self.z: B = None
        self.y: C = None
        self.t: E = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: G = None
        self.y: F = None
        self.w: F = None
        self.v: D = None
        self.txt = txt

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

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