class A:
    def __init__(self, txt: str):
        self.q: E = None
        self.w: G = None
        self.p: G = None
        self.o: H = None
        self.u: G = None
        self.r: I = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: I = None
        self.z: E = None
        self.x: A = None
        self.s: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: H = None
        self.w: E = None
        self.v: E = None
        self.u: A = None
        self.o: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.z: F = None
        self.r: A = None
        self.v: C = None
        self.s: D = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: I = None
        self.z: E = None
        self.x: A = None
        self.s: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: H = None
        self.w: E = None
        self.v: E = None
        self.u: A = None
        self.o: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.z: F = None
        self.r: A = None
        self.v: C = None
        self.s: D = None
        self.txt = txt

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

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

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

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