class A:
    def __init__(self, txt: str):
        self.o: I = None
        self.p: F = None
        self.z: C = None
        self.v: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: A = None
        self.q: H = None
        self.z: B = None
        self.r: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: A = None
        self.t: A = None
        self.x: G = None
        self.u: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.v: F = None
        self.t: A = None
        self.q: F = None
        self.y: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: A = None
        self.r: C = None
        self.s: D = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: A = None
        self.q: H = None
        self.z: B = None
        self.r: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: A = None
        self.t: A = None
        self.x: G = None
        self.u: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.v: F = None
        self.t: A = None
        self.q: F = None
        self.y: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: A = None
        self.r: C = None
        self.s: D = None
        self.txt = txt

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

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

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