class A:
    def __init__(self, txt: str):
        self.q: G = None
        self.s: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: F = None
        self.z: E = None
        self.p: A = None
        self.y: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.t: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: E = None
        self.v: I = None
        self.s: H = None
        self.q: H = None
        self.y: A = None
        self.w: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: H = None
        self.p: H = None
        self.u: D = None
        self.y: C = None
        self.z: A = None
        self.x: A = None
        self.txt = txt

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

n.q = j
n.s = c
f.x = i
f.z = a
f.p = n
f.y = n
k.z = b
b.z = f
b.t = n
a.o = m
a.u = c
a.z = f
i.o = a
i.v = c
i.s = m
i.q = m
i.y = n
i.w = n
j.v = b
m.x = c
c.t = m
c.p = m
c.u = b
c.y = k
c.z = n
c.x = n
assert n.s.u.t.q.v.z.y.txt == "
class A:
    def __init__(self, txt: str):
        self.q: G = None
        self.s: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: F = None
        self.z: E = None
        self.p: A = None
        self.y: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.t: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: E = None
        self.v: I = None
        self.s: H = None
        self.q: H = None
        self.y: A = None
        self.w: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: H = None
        self.p: H = None
        self.u: D = None
        self.y: C = None
        self.z: A = None
        self.x: A = None
        self.txt = txt

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

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