class A:
    def __init__(self, txt: str):
        self.q: I = None
        self.y: E = None
        self.x: D = None
        self.t: J = None
        self.u: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: H = None
        self.r: J = None
        self.s: F = None
        self.w: F = None
        self.z: A = None
        self.p: F = None
        self.q: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: H = None
        self.x: B = None
        self.s: D = None
        self.o: J = None
        self.u: F = None
        self.t: H = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.q: A = None
        self.s: B = None
        self.u: J = None
        self.o: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: D = None
        self.p: B = None
        self.s: A = None
        self.u: G = None
        self.x: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: E = None
        self.p: E = None
        self.x: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: H = None
        self.r: J = None
        self.s: F = None
        self.w: F = None
        self.z: A = None
        self.p: F = None
        self.q: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: H = None
        self.x: B = None
        self.s: D = None
        self.o: J = None
        self.u: F = None
        self.t: H = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.q: A = None
        self.s: B = None
        self.u: J = None
        self.o: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: D = None
        self.p: B = None
        self.s: A = None
        self.u: G = None
        self.x: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: E = None
        self.p: E = None
        self.x: H = None
        self.txt = txt

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

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