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

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

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

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.w: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.x: G = None
        self.o: H = None
        self.u: F = None
        self.t: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: B = None
        self.y: E = None
        self.t: I = None
        self.w: C = None
        self.txt = txt

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

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

i.v = h
i.p = h
i.u = h
i.o = l
i.z = b
i.x = j
g.y = f
g.v = f
g.p = f
g.u = l
g.z = l
g.q = d
g.w = d
g.r = b
g.o = h
d.q = i
d.u = m
d.t = m
d.s = g
d.y = j
d.o = b
d.p = b
d.z = f
b.y = i
b.w = g
l.x = m
l.t = m
l.u = f
l.r = i
l.w = i
l.y = g
l.p = g
m.r = g
m.v = g
m.t = i
m.z = i
m.q = l
m.u = l
m.x = l
m.y = h
m.o = h
n.s = b
n.x = f
n.o = j
n.u = m
n.t = d
j.x = g
j.y = l
j.t = h
j.w = d
h.y = l
h.q = l
h.w = m
h.p = j
h.x = j
h.t = d
f.s = b
f.x = n
f.o = j
f.u = m
f.t = d
assert l.y.q.p.w.w.z.x.txt == "
class A:
    def __init__(self, txt: str):
        self.v: I = None
        self.o: E = None
        self.p: I = None
        self.z: D = None
        self.x: H = None
        self.u: I = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.w: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.x: G = None
        self.o: H = None
        self.u: F = None
        self.t: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: B = None
        self.y: E = None
        self.t: I = None
        self.w: C = None
        self.txt = txt

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

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

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