class A:
    def __init__(self, txt: str):
        self.o: D = None
        self.v: G = None
        self.y: F = None
        self.t: H = None
        self.x: F = None
        self.p: E = None
        self.s: F = None
        self.u: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: H = None
        self.w: H = None
        self.v: A = None
        self.o: G = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.p: A = None
        self.z: D = None
        self.q: C = None
        self.w: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: H = None
        self.w: H = None
        self.v: A = None
        self.o: G = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.p: A = None
        self.z: D = None
        self.q: C = None
        self.w: G = None
        self.txt = txt

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

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