class A:
    def __init__(self, txt: str):
        self.z: G = None
        self.w: E = None
        self.x: B = None
        self.o: C = None
        self.v: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.z: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.z: B = None
        self.v: G = None
        self.q: B = None
        self.o: B = None
        self.t: B = None
        self.p: I = None
        self.x: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: I = None
        self.x: H = None
        self.y: H = None
        self.p: G = None
        self.q: C = None
        self.o: F = None
        self.v: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: F = None
        self.s: B = None
        self.v: B = None
        self.o: D = None
        self.r: F = None
        self.p: F = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.z: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.z: B = None
        self.v: G = None
        self.q: B = None
        self.o: B = None
        self.t: B = None
        self.p: I = None
        self.x: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: I = None
        self.x: H = None
        self.y: H = None
        self.p: G = None
        self.q: C = None
        self.o: F = None
        self.v: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: F = None
        self.s: B = None
        self.v: B = None
        self.o: D = None
        self.r: F = None
        self.p: F = None
        self.txt = txt

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

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

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

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