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

class B:
    def __init__(self, txt: str):
        self.p: H = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.v: H = None
        self.r: G = None
        self.s: A = None
        self.o: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: C = None
        self.s: A = None
        self.w: E = None
        self.p: E = None
        self.x: D = None
        self.u: A = None
        self.o: A = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: H = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.v: H = None
        self.r: G = None
        self.s: A = None
        self.o: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: C = None
        self.s: A = None
        self.w: E = None
        self.p: E = None
        self.x: D = None
        self.u: A = None
        self.o: A = None
        self.txt = txt

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

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

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