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

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

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.s: E = None
        self.o: G = None
        self.x: F = None
        self.t: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: C = None
        self.r: A = None
        self.u: H = None
        self.txt = txt

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

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

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

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

g = A("g")
h = B("h")
e = C("e")
i = D("i")
j = E("j")
k = F("k")
f = G("f")
d = H("d")

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

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

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.s: E = None
        self.o: G = None
        self.x: F = None
        self.t: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: C = None
        self.r: A = None
        self.u: H = None
        self.txt = txt

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

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

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

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

g = A("g")
h = B("h")
e = C("e")
i = D("i")
j = E("j")
k = F("k")
f = G("f")
d = H("d")

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