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

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

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.o: G = None
        self.t: B = None
        self.u: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: C = None
        self.v: C = None
        self.z: B = None
        self.t: B = None
        self.y: C = None
        self.txt = txt

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

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

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

g = A("g")
b = B("b")
i = C("i")
e = D("e")
c = E("c")
j = F("j")
n = G("n")
k = H("k")
h = E("h")
m = F("m")

g.y = c
b.v = n
i.x = j
i.o = n
i.t = b
i.u = c
e.x = i
c.o = i
c.v = i
c.y = i
c.z = b
c.t = b
j.t = e
n.s = i
n.w = e
n.r = g
k.v = b
k.u = b
k.t = e
k.r = e
k.z = i
k.w = c
k.y = m
h.o = i
h.v = i
h.y = i
h.z = b
h.t = b
m.t = e
assert c.o.u.y.t.v.s.txt == "
class A:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.o: G = None
        self.t: B = None
        self.u: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: C = None
        self.v: C = None
        self.z: B = None
        self.t: B = None
        self.y: C = None
        self.txt = txt

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

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

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

g = A("g")
b = B("b")
i = C("i")
e = D("e")
c = E("c")
j = F("j")
n = G("n")
k = H("k")
h = E("h")
m = F("m")

g.y = c
b.v = n
i.x = j
i.o = n
i.t = b
i.u = c
e.x = i
c.o = i
c.v = i
c.y = i
c.z = b
c.t = b
j.t = e
n.s = i
n.w = e
n.r = g
k.v = b
k.u = b
k.t = e
k.r = e
k.z = i
k.w = c
k.y = m
h.o = i
h.v = i
h.y = i
h.z = b
h.t = b
m.t = e
assert c.o.u.y.t.v.s.txt == "i"