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

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.u: F = None
        self.t: D = None
        self.w: H = None
        self.o: H = None
        self.y: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: I = None
        self.y: E = None
        self.x: D = None
        self.q: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: C = None
        self.s: I = None
        self.q: A = None
        self.o: E = None
        self.x: I = None
        self.w: I = None
        self.t: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: C = None
        self.x: D = None
        self.t: G = None
        self.v: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: A = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.u: F = None
        self.t: D = None
        self.w: H = None
        self.o: H = None
        self.y: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: I = None
        self.y: E = None
        self.x: D = None
        self.q: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: C = None
        self.s: I = None
        self.q: A = None
        self.o: E = None
        self.x: I = None
        self.w: I = None
        self.t: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: C = None
        self.x: D = None
        self.t: G = None
        self.v: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: A = None
        self.txt = txt

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

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

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