class A:
    def __init__(self, txt: str):
        self.v: C = None
        self.z: B = None
        self.w: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.z: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.u: G = None
        self.y: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.u: E = None
        self.o: D = None
        self.y: C = None
        self.p: H = None
        self.z: E = None
        self.v: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.z: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.u: G = None
        self.y: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.u: E = None
        self.o: D = None
        self.y: C = None
        self.p: H = None
        self.z: E = None
        self.v: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

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

i.v = h
i.z = m
i.w = m
m.t = f
h.u = j
h.s = g
h.x = g
h.o = l
h.v = e
e.u = j
e.z = m
l.v = a
l.u = j
l.y = g
g.x = c
g.u = l
g.z = l
g.o = e
g.y = h
g.v = h
g.p = f
j.s = e
a.s = e
c.s = e
f.s = e
assert j.s.z.t.s.u.txt == "j"