class A:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: I = None
        self.o: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.q: C = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.t: F = None
        self.o: F = None
        self.q: F = None
        self.v: F = None
        self.u: G = None
        self.s: E = None
        self.w: A = None
        self.r: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: I = None
        self.o: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.q: C = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.t: F = None
        self.o: F = None
        self.q: F = None
        self.v: F = None
        self.u: G = None
        self.s: E = None
        self.w: A = None
        self.r: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

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

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