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

class B:
    def __init__(self, txt: str):
        self.y: F = None
        self.q: H = None
        self.w: E = None
        self.u: H = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.w: B = None
        self.x: H = None
        self.q: C = None
        self.s: E = None
        self.p: C = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: F = None
        self.q: H = None
        self.w: E = None
        self.u: H = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.w: B = None
        self.x: H = None
        self.q: C = None
        self.s: E = None
        self.p: C = None
        self.txt = txt

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

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

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

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

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