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

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

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

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.x: A = None
        self.o: A = None
        self.y: G = None
        self.p: C = None
        self.t: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: A = None
        self.q: B = None
        self.s: H = None
        self.u: A = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.q: F = None
        self.u: E = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.x: A = None
        self.o: A = None
        self.y: G = None
        self.p: C = None
        self.t: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: A = None
        self.q: B = None
        self.s: H = None
        self.u: A = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.q: F = None
        self.u: E = None
        self.txt = txt

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

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