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

class B:
    def __init__(self, txt: str):
        self.s: I = None
        self.w: I = None
        self.o: A = None
        self.t: A = None
        self.z: F = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: E = None
        self.w: I = None
        self.p: F = None
        self.r: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.q: D = None
        self.p: F = None
        self.r: G = None
        self.y: D = None
        self.w: B = None
        self.z: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: B = None
        self.z: E = None
        self.o: B = None
        self.r: B = None
        self.p: H = None
        self.v: C = None
        self.y: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: I = None
        self.w: I = None
        self.o: A = None
        self.t: A = None
        self.z: F = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: E = None
        self.w: I = None
        self.p: F = None
        self.r: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.q: D = None
        self.p: F = None
        self.r: G = None
        self.y: D = None
        self.w: B = None
        self.z: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: B = None
        self.z: E = None
        self.o: B = None
        self.r: B = None
        self.p: H = None
        self.v: C = None
        self.y: H = None
        self.txt = txt

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

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