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

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

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

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

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: A = None
        self.u: D = None
        self.q: C = None
        self.w: D = None
        self.o: E = None
        self.p: B = None
        self.v: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: E = None
        self.u: F = None
        self.y: F = None
        self.s: A = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: A = None
        self.u: D = None
        self.q: C = None
        self.w: D = None
        self.o: E = None
        self.p: B = None
        self.v: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: E = None
        self.u: F = None
        self.y: F = None
        self.s: A = None
        self.txt = txt

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

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