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

class B:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: G = None
        self.u: H = None
        self.v: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: E = None
        self.p: F = None
        self.y: G = None
        self.s: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.r: C = None
        self.s: E = None
        self.z: B = None
        self.w: E = None
        self.t: E = None
        self.v: F = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: G = None
        self.u: H = None
        self.v: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: E = None
        self.p: F = None
        self.y: G = None
        self.s: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.r: C = None
        self.s: E = None
        self.z: B = None
        self.w: E = None
        self.t: E = None
        self.v: F = None
        self.txt = txt

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

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

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