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

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

class C:
    def __init__(self, txt: str):
        self.r: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.p: B = None
        self.q: A = None
        self.s: E = None
        self.r: G = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.p: B = None
        self.q: A = None
        self.s: E = None
        self.r: G = None
        self.txt = txt

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

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

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

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