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

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

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

class D:
    def __init__(self, txt: str):
        self.u: E = None
        self.z: H = None
        self.v: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: D = None
        self.w: B = None
        self.z: A = None
        self.p: B = None
        self.y: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.x: F = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.u: E = None
        self.z: H = None
        self.v: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: D = None
        self.w: B = None
        self.z: A = None
        self.p: B = None
        self.y: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.x: F = None
        self.txt = txt

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

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