class A:
    def __init__(self, txt: str):
        self.y: B = None
        self.q: G = None
        self.u: F = None
        self.t: C = None
        self.p: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.q: A = None
        self.s: H = None
        self.w: H = None
        self.y: F = None
        self.z: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: C = None
        self.q: F = None
        self.s: G = None
        self.v: F = None
        self.z: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: G = None
        self.x: B = None
        self.w: H = None
        self.o: C = None
        self.y: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: B = None
        self.y: F = None
        self.w: C = None
        self.q: B = None
        self.u: B = None
        self.x: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: D = None
        self.v: C = None
        self.p: G = None
        self.u: D = None
        self.t: D = None
        self.z: A = None
        self.txt = txt

h = A("h")
j = B("j")
m = C("m")
e = D("e")
d = E("d")
a = F("a")
n = G("n")
i = H("i")

h.y = j
h.q = n
h.u = a
h.t = m
h.p = i
j.r = n
j.t = n
j.u = i
j.o = i
j.p = e
j.z = m
j.x = d
j.y = a
m.u = e
m.q = h
m.z = h
m.s = i
m.w = i
m.y = a
e.p = m
e.q = a
e.v = a
e.s = n
e.z = n
d.o = n
d.u = h
d.v = e
d.r = a
d.y = a
a.p = n
a.x = j
a.w = i
a.o = m
a.y = d
n.s = j
n.q = j
n.u = j
n.y = a
n.w = m
n.x = i
i.s = e
i.u = e
i.t = e
i.v = m
i.p = n
i.z = h
assert j.z.u.z.x.txt == "
class A:
    def __init__(self, txt: str):
        self.y: B = None
        self.q: G = None
        self.u: F = None
        self.t: C = None
        self.p: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.q: A = None
        self.s: H = None
        self.w: H = None
        self.y: F = None
        self.z: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: C = None
        self.q: F = None
        self.s: G = None
        self.v: F = None
        self.z: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: G = None
        self.x: B = None
        self.w: H = None
        self.o: C = None
        self.y: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: B = None
        self.y: F = None
        self.w: C = None
        self.q: B = None
        self.u: B = None
        self.x: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: D = None
        self.v: C = None
        self.p: G = None
        self.u: D = None
        self.t: D = None
        self.z: A = None
        self.txt = txt

h = A("h")
j = B("j")
m = C("m")
e = D("e")
d = E("d")
a = F("a")
n = G("n")
i = H("i")

h.y = j
h.q = n
h.u = a
h.t = m
h.p = i
j.r = n
j.t = n
j.u = i
j.o = i
j.p = e
j.z = m
j.x = d
j.y = a
m.u = e
m.q = h
m.z = h
m.s = i
m.w = i
m.y = a
e.p = m
e.q = a
e.v = a
e.s = n
e.z = n
d.o = n
d.u = h
d.v = e
d.r = a
d.y = a
a.p = n
a.x = j
a.w = i
a.o = m
a.y = d
n.s = j
n.q = j
n.u = j
n.y = a
n.w = m
n.x = i
i.s = e
i.u = e
i.t = e
i.v = m
i.p = n
i.z = h
assert j.z.u.z.x.txt == "i"