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

class B:
    def __init__(self, txt: str):
        self.q: A = None
        self.y: C = None
        self.o: D = None
        self.v: C = None
        self.r: H = None
        self.u: H = None
        self.t: H = None
        self.s: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: B = None
        self.y: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: H = None
        self.t: D = None
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.w: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: G = None
        self.z: E = None
        self.p: B = None
        self.t: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: A = None
        self.y: C = None
        self.o: D = None
        self.v: C = None
        self.r: H = None
        self.u: H = None
        self.t: H = None
        self.s: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: B = None
        self.y: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: H = None
        self.t: D = None
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.w: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: G = None
        self.z: E = None
        self.p: B = None
        self.t: A = None
        self.txt = txt

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

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