class A:
    def __init__(self, txt: str):
        self.u: I = None
        self.v: I = None
        self.q: C = None
        self.t: E = None
        self.w: E = None
        self.s: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: H = None
        self.q: J = None
        self.v: H = None
        self.x: G = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.q: D = None
        self.t: G = None
        self.s: B = None
        self.o: J = None
        self.x: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: C = None
        self.s: H = None
        self.o: I = None
        self.x: J = None
        self.q: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: F = None
        self.p: D = None
        self.v: G = None
        self.o: G = None
        self.u: D = None
        self.s: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: C = None
        self.r: F = None
        self.z: C = None
        self.s: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: H = None
        self.q: J = None
        self.v: H = None
        self.x: G = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.q: D = None
        self.t: G = None
        self.s: B = None
        self.o: J = None
        self.x: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: C = None
        self.s: H = None
        self.o: I = None
        self.x: J = None
        self.q: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: F = None
        self.p: D = None
        self.v: G = None
        self.o: G = None
        self.u: D = None
        self.s: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: C = None
        self.r: F = None
        self.z: C = None
        self.s: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: E = None
        self.txt = txt

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

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