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

class B:
    def __init__(self, txt: str):
        self.v: C = None
        self.y: A = None
        self.r: H = None
        self.w: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: I = None
        self.w: B = None
        self.x: B = None
        self.o: H = None
        self.u: H = None
        self.y: G = None
        self.q: A = None
        self.p: H = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.y: I = None
        self.w: B = None
        self.t: H = None
        self.x: H = None
        self.q: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: G = None
        self.v: A = None
        self.z: A = None
        self.r: A = None
        self.s: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: C = None
        self.t: F = None
        self.x: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: C = None
        self.y: A = None
        self.r: H = None
        self.w: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: I = None
        self.w: B = None
        self.x: B = None
        self.o: H = None
        self.u: H = None
        self.y: G = None
        self.q: A = None
        self.p: H = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.y: I = None
        self.w: B = None
        self.t: H = None
        self.x: H = None
        self.q: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: G = None
        self.v: A = None
        self.z: A = None
        self.r: A = None
        self.s: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: C = None
        self.t: F = None
        self.x: H = None
        self.txt = txt

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

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