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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: A = None
        self.y: D = None
        self.txt = txt

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

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

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: A = None
        self.y: D = None
        self.txt = txt

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

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

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

j.u = k
j.z = l
j.t = a
j.o = h
k.r = n
k.u = m
k.y = c
c.r = k
c.u = k
c.z = a
l.o = c
l.u = m
l.r = n
l.p = i
i.v = j
i.y = l
i.x = h
m.s = a
m.y = l
n.x = k
n.t = i
n.v = i
n.y = m
h.z = l
h.v = l
h.u = c
h.t = c
h.r = m
h.y = j
h.x = k
a.u = k
a.z = l
a.t = j
a.o = h
assert a.z.r.y.y.u.s.t.txt == "j"