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

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

class C:
    def __init__(self, txt: str):
        self.t: I = None
        self.z: H = None
        self.o: G = None
        self.u: A = None
        self.q: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: C = None
        self.q: A = None
        self.y: H = None
        self.w: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.y: A = None
        self.p: I = None
        self.x: F = None
        self.u: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: C = None
        self.t: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: F = None
        self.y: E = None
        self.r: I = None
        self.w: D = None
        self.o: B = None
        self.u: D = None
        self.p: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: D = None
        self.y: E = None
        self.x: B = None
        self.p: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: I = None
        self.z: H = None
        self.o: G = None
        self.u: A = None
        self.q: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: C = None
        self.q: A = None
        self.y: H = None
        self.w: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.y: A = None
        self.p: I = None
        self.x: F = None
        self.u: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: C = None
        self.t: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: F = None
        self.y: E = None
        self.r: I = None
        self.w: D = None
        self.o: B = None
        self.u: D = None
        self.p: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: D = None
        self.y: E = None
        self.x: B = None
        self.p: E = None
        self.txt = txt

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

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