class A:
    def __init__(self, txt: str):
        self.v: F = None
        self.y: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.p: A = None
        self.v: F = None
        self.x: G = None
        self.o: A = None
        self.u: A = None
        self.t: E = None
        self.y: F = None
        self.q: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: I = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.s: D = None
        self.o: B = None
        self.u: D = None
        self.y: B = None
        self.z: B = None
        self.w: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: G = None
        self.w: A = None
        self.t: C = None
        self.x: G = None
        self.u: D = None
        self.q: C = None
        self.s: A = None
        self.txt = txt

a = A("a")
j = B("j")
m = C("m")
k = D("k")
c = E("c")
l = F("l")
b = G("b")
e = H("e")
n = I("n")

a.v = l
a.y = e
j.q = b
j.u = c
j.s = e
j.p = e
j.z = e
j.y = a
m.s = j
m.p = a
m.o = a
m.u = a
m.v = l
m.y = l
m.x = b
m.t = c
m.q = e
k.r = n
c.w = k
c.y = e
l.o = j
l.q = j
l.y = m
l.z = m
l.x = m
l.v = k
l.s = b
l.u = c
l.r = a
b.o = k
b.v = l
b.s = l
b.z = c
e.s = k
e.u = k
e.o = j
e.y = j
e.z = j
e.w = c
n.z = b
n.x = b
n.w = a
n.s = a
n.t = m
n.q = m
n.u = k
assert a.v.s.s.q.txt == "
class A:
    def __init__(self, txt: str):
        self.v: F = None
        self.y: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.p: A = None
        self.v: F = None
        self.x: G = None
        self.o: A = None
        self.u: A = None
        self.t: E = None
        self.y: F = None
        self.q: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: I = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.s: D = None
        self.o: B = None
        self.u: D = None
        self.y: B = None
        self.z: B = None
        self.w: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: G = None
        self.w: A = None
        self.t: C = None
        self.x: G = None
        self.u: D = None
        self.q: C = None
        self.s: A = None
        self.txt = txt

a = A("a")
j = B("j")
m = C("m")
k = D("k")
c = E("c")
l = F("l")
b = G("b")
e = H("e")
n = I("n")

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