class A:
    def __init__(self, txt: str):
        self.w: B = None
        self.p: F = None
        self.o: F = None
        self.z: C = None
        self.u: D = None
        self.q: C = None
        self.t: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.q: D = None
        self.x: D = None
        self.s: F = None
        self.v: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: B = None
        self.u: E = None
        self.s: A = None
        self.x: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.o: G = None
        self.p: C = None
        self.q: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.txt = txt

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

e = A("e")
d = B("d")
f = C("f")
h = D("h")
k = E("k")
c = F("c")
g = G("g")
a = C("a")

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

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.q: D = None
        self.x: D = None
        self.s: F = None
        self.v: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: B = None
        self.u: E = None
        self.s: A = None
        self.x: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.o: G = None
        self.p: C = None
        self.q: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.txt = txt

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

e = A("e")
d = B("d")
f = C("f")
h = D("h")
k = E("k")
c = F("c")
g = G("g")
a = C("a")

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