class A:
    def __init__(self, txt: str):
        self.s: I = None
        self.z: G = None
        self.u: H = None
        self.o: H = None
        self.p: D = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: C = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: C = None
        self.txt = txt

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

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

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

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

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

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