class A:
    def __init__(self, txt: str):
        self.w: G = None
        self.z: C = None
        self.txt = txt

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.u: E = None
        self.x: A = None
        self.s: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: A = None
        self.q: G = None
        self.o: E = None
        self.t: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: H = None
        self.t: E = None
        self.q: D = None
        self.u: E = None
        self.txt = txt

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

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.u: E = None
        self.x: A = None
        self.s: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: A = None
        self.q: G = None
        self.o: E = None
        self.t: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: H = None
        self.t: E = None
        self.q: D = None
        self.u: E = None
        self.txt = txt

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

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