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

class B:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: G = None
        self.w: F = None
        self.q: A = None
        self.y: G = None
        self.s: G = None
        self.r: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.o: A = None
        self.t: G = None
        self.s: B = None
        self.x: E = None
        self.q: G = None
        self.p: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.t: B = None
        self.r: G = None
        self.z: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.p: F = None
        self.x: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: G = None
        self.z: G = None
        self.u: B = None
        self.o: G = None
        self.q: D = None
        self.v: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: G = None
        self.w: F = None
        self.q: A = None
        self.y: G = None
        self.s: G = None
        self.r: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: H = None
        self.o: A = None
        self.t: G = None
        self.s: B = None
        self.x: E = None
        self.q: G = None
        self.p: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.t: B = None
        self.r: G = None
        self.z: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.p: F = None
        self.x: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: G = None
        self.z: G = None
        self.u: B = None
        self.o: G = None
        self.q: D = None
        self.v: A = None
        self.txt = txt

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

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