class A:
    def __init__(self, txt: str):
        self.y: I = None
        self.u: I = None
        self.p: H = None
        self.r: C = None
        self.s: H = None
        self.q: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: H = None
        self.z: A = None
        self.q: B = None
        self.u: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.z: A = None
        self.x: I = None
        self.q: H = None
        self.v: B = None
        self.y: G = None
        self.u: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: H = None
        self.z: C = None
        self.r: H = None
        self.v: I = None
        self.x: E = None
        self.s: F = None
        self.u: I = None
        self.q: H = None
        self.o: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.r: F = None
        self.t: A = None
        self.q: E = None
        self.p: F = None
        self.x: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: D = None
        self.x: G = None
        self.p: F = None
        self.o: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: H = None
        self.z: A = None
        self.q: B = None
        self.u: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.z: A = None
        self.x: I = None
        self.q: H = None
        self.v: B = None
        self.y: G = None
        self.u: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: H = None
        self.z: C = None
        self.r: H = None
        self.v: I = None
        self.x: E = None
        self.s: F = None
        self.u: I = None
        self.q: H = None
        self.o: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.r: F = None
        self.t: A = None
        self.q: E = None
        self.p: F = None
        self.x: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: D = None
        self.x: G = None
        self.p: F = None
        self.o: C = None
        self.txt = txt

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

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