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

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.u: A = None
        self.r: C = None
        self.y: H = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.u: A = None
        self.r: C = None
        self.y: H = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.txt = txt

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

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

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