class A:
    def __init__(self, txt: str):
        self.w: G = None
        self.p: A = None
        self.v: F = None
        self.r: H = None
        self.x: A = None
        self.y: A = None
        self.s: D = None
        self.u: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.o: H = None
        self.y: F = None
        self.u: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: F = None
        self.s: H = None
        self.o: E = None
        self.v: C = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: D = None
        self.txt = txt

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

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

l.w = d
l.u = d
l.p = c
l.x = c
l.y = c
l.v = g
l.r = k
l.s = i
m.q = i
m.z = i
m.w = a
a.r = d
a.o = k
a.y = g
a.u = h
i.r = g
i.s = k
i.o = h
i.v = a
h.y = m
h.u = m
h.x = d
h.o = a
h.q = a
h.s = k
h.v = k
h.t = k
g.s = l
d.r = i
k.s = i
k.w = a
k.p = c
k.u = m
k.z = d
k.r = d
c.w = d
c.u = d
c.p = l
c.x = l
c.y = l
c.v = g
c.r = k
c.s = i
assert a.y.s.s.r.s.r.s.s.txt == "
class A:
    def __init__(self, txt: str):
        self.w: G = None
        self.p: A = None
        self.v: F = None
        self.r: H = None
        self.x: A = None
        self.y: A = None
        self.s: D = None
        self.u: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.o: H = None
        self.y: F = None
        self.u: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: F = None
        self.s: H = None
        self.o: E = None
        self.v: C = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: D = None
        self.txt = txt

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

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

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