class A:
    def __init__(self, txt: str):
        self.w: B = None
        self.t: F = None
        self.r: H = None
        self.v: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: G = None
        self.y: D = None
        self.r: B = None
        self.u: I = None
        self.v: A = None
        self.o: H = None
        self.x: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: A = None
        self.s: B = None
        self.v: D = None
        self.t: B = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.q: F = None
        self.t: F = None
        self.s: A = None
        self.z: A = None
        self.v: C = None
        self.y: B = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: G = None
        self.y: D = None
        self.r: B = None
        self.u: I = None
        self.v: A = None
        self.o: H = None
        self.x: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: A = None
        self.s: B = None
        self.v: D = None
        self.t: B = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.q: F = None
        self.t: F = None
        self.s: A = None
        self.z: A = None
        self.v: C = None
        self.y: B = None
        self.txt = txt

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

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