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

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.x: H = None
        self.q: C = None
        self.y: E = None
        self.z: H = None
        self.o: I = None
        self.v: H = None
        self.t: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.z: I = None
        self.w: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: B = None
        self.v: E = None
        self.w: I = None
        self.t: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: H = None
        self.w: A = None
        self.v: H = None
        self.r: H = None
        self.u: H = None
        self.t: H = None
        self.o: A = None
        self.x: A = None
        self.s: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.x: H = None
        self.q: C = None
        self.y: E = None
        self.z: H = None
        self.o: I = None
        self.v: H = None
        self.t: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.z: I = None
        self.w: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: B = None
        self.v: E = None
        self.w: I = None
        self.t: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: H = None
        self.w: A = None
        self.v: H = None
        self.r: H = None
        self.u: H = None
        self.t: H = None
        self.o: A = None
        self.x: A = None
        self.s: A = None
        self.txt = txt

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

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