class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.p: E = None
        self.y: I = None
        self.v: H = None
        self.x: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.o: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: C = None
        self.s: H = None
        self.r: A = None
        self.v: I = None
        self.t: C = None
        self.txt = txt

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

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.o: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: C = None
        self.s: H = None
        self.r: A = None
        self.v: I = None
        self.t: C = None
        self.txt = txt

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

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

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

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

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

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