class A:
    def __init__(self, txt: str):
        self.w: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: C = None
        self.t: E = None
        self.p: C = None
        self.u: F = None
        self.s: E = None
        self.w: F = None
        self.v: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: E = None
        self.t: A = None
        self.w: A = None
        self.r: F = None
        self.y: F = None
        self.u: I = None
        self.p: C = None
        self.z: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: I = None
        self.q: H = None
        self.y: G = None
        self.x: F = None
        self.r: D = None
        self.w: B = None
        self.o: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: I = None
        self.p: A = None
        self.z: B = None
        self.o: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: A = None
        self.q: F = None
        self.p: C = None
        self.txt = txt

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

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

c = A("c")
l = B("l")
n = C("n")
g = D("g")
a = E("a")
k = F("k")
i = G("i")
f = H("f")
e = I("e")

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

class B:
    def __init__(self, txt: str):
        self.q: C = None
        self.t: E = None
        self.p: C = None
        self.u: F = None
        self.s: E = None
        self.w: F = None
        self.v: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: E = None
        self.t: A = None
        self.w: A = None
        self.r: F = None
        self.y: F = None
        self.u: I = None
        self.p: C = None
        self.z: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: I = None
        self.q: H = None
        self.y: G = None
        self.x: F = None
        self.r: D = None
        self.w: B = None
        self.o: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: I = None
        self.p: A = None
        self.z: B = None
        self.o: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: A = None
        self.q: F = None
        self.p: C = None
        self.txt = txt

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

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

c = A("c")
l = B("l")
n = C("n")
g = D("g")
a = E("a")
k = F("k")
i = G("i")
f = H("f")
e = I("e")

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