class A:
    def __init__(self, txt: str):
        self.q: E = None
        self.o: D = None
        self.y: C = None
        self.v: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: F = None
        self.w: H = None
        self.u: F = None
        self.y: D = None
        self.p: C = None
        self.z: D = None
        self.x: H = None
        self.v: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: G = None
        self.q: A = None
        self.y: H = None
        self.u: E = None
        self.txt = txt

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

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: F = None
        self.w: H = None
        self.u: F = None
        self.y: D = None
        self.p: C = None
        self.z: D = None
        self.x: H = None
        self.v: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: G = None
        self.q: A = None
        self.y: H = None
        self.u: E = None
        self.txt = txt

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

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

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

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

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

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

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