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

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

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

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

class E:
    def __init__(self, txt: str):
        self.z: G = None
        self.p: C = None
        self.u: F = None
        self.t: C = None
        self.w: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: F = None
        self.s: H = None
        self.v: H = None
        self.x: B = None
        self.w: B = None
        self.o: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: D = None
        self.p: F = None
        self.w: D = None
        self.t: D = None
        self.z: B = None
        self.o: B = None
        self.r: F = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.z: G = None
        self.p: C = None
        self.u: F = None
        self.t: C = None
        self.w: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: F = None
        self.s: H = None
        self.v: H = None
        self.x: B = None
        self.w: B = None
        self.o: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: D = None
        self.p: F = None
        self.w: D = None
        self.t: D = None
        self.z: B = None
        self.o: B = None
        self.r: F = None
        self.txt = txt

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

g.y = h
j.t = k
j.u = n
j.p = n
c.t = h
c.o = h
c.s = j
c.z = n
n.v = c
n.w = c
n.z = c
n.o = c
n.p = j
n.q = j
n.u = h
n.t = k
d.z = k
d.w = k
d.p = c
d.t = c
d.u = i
i.w = g
i.t = h
k.r = i
k.o = i
k.s = h
k.v = h
k.x = j
k.w = j
h.s = n
h.w = n
h.t = n
h.p = i
h.r = i
h.z = j
h.o = j
assert i.t.z.t.x.txt == "j"