class A:
    def __init__(self, txt: str):
        self.s: G = None
        self.o: B = None
        self.t: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: D = None
        self.q: D = None
        self.s: D = None
        self.z: B = None
        self.r: H = None
        self.x: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.p: G = None
        self.r: H = None
        self.o: H = None
        self.s: D = None
        self.x: C = None
        self.w: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: H = None
        self.u: H = None
        self.r: C = None
        self.t: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: H = None
        self.txt = txt

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

e = A("e")
f = B("f")
d = C("d")
b = D("b")
k = E("k")
a = F("a")
i = G("i")
h = H("h")
l = B("l")
c = E("c")

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

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

class C:
    def __init__(self, txt: str):
        self.v: D = None
        self.q: D = None
        self.s: D = None
        self.z: B = None
        self.r: H = None
        self.x: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.p: G = None
        self.r: H = None
        self.o: H = None
        self.s: D = None
        self.x: C = None
        self.w: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: H = None
        self.u: H = None
        self.r: C = None
        self.t: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: H = None
        self.txt = txt

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

e = A("e")
f = B("f")
d = C("d")
b = D("b")
k = E("k")
a = F("a")
i = G("i")
h = H("h")
l = B("l")
c = E("c")

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