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

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

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

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

class E:
    def __init__(self, txt: str):
        self.o: H = None
        self.t: C = None
        self.s: F = None
        self.w: H = None
        self.q: D = None
        self.z: E = None
        self.u: C = None
        self.x: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: B = None
        self.w: C = None
        self.p: B = None
        self.u: D = None
        self.t: C = None
        self.q: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: E = None
        self.s: D = None
        self.txt = txt

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

d = A("d")
n = B("n")
f = C("f")
a = D("a")
e = E("e")
c = F("c")
j = G("j")
h = H("h")
k = E("k")

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.o: H = None
        self.t: C = None
        self.s: F = None
        self.w: H = None
        self.q: D = None
        self.z: E = None
        self.u: C = None
        self.x: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: B = None
        self.w: C = None
        self.p: B = None
        self.u: D = None
        self.t: C = None
        self.q: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: E = None
        self.s: D = None
        self.txt = txt

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

d = A("d")
n = B("n")
f = C("f")
a = D("a")
e = E("e")
c = F("c")
j = G("j")
h = H("h")
k = E("k")

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