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

class B:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: A = None
        self.q: E = None
        self.r: G = None
        self.s: G = None
        self.w: G = None
        self.z: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.y: A = None
        self.x: D = None
        self.v: F = None
        self.txt = txt

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

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

d = A("d")
e = B("e")
n = C("n")
c = D("c")
b = E("b")
k = F("k")
h = G("h")
i = D("i")
f = C("f")
j = F("j")

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

class B:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: A = None
        self.q: E = None
        self.r: G = None
        self.s: G = None
        self.w: G = None
        self.z: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: G = None
        self.y: A = None
        self.x: D = None
        self.v: F = None
        self.txt = txt

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

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

d = A("d")
e = B("e")
n = C("n")
c = D("c")
b = E("b")
k = F("k")
h = G("h")
i = D("i")
f = C("f")
j = F("j")

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