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

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

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

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.r: E = None
        self.y: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: J = None
        self.p: J = None
        self.x: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: F = None
        self.q: B = None
        self.z: J = None
        self.p: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: D = None
        self.r: J = None
        self.s: B = None
        self.p: G = None
        self.z: G = None
        self.w: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: G = None
        self.x: H = None
        self.s: C = None
        self.q: F = None
        self.o: H = None
        self.u: E = None
        self.w: D = None
        self.y: E = None
        self.p: H = None
        self.txt = txt

i = A("i")
d = B("d")
m = C("m")
l = D("l")
f = E("f")
g = F("g")
n = G("n")
j = H("j")
h = I("h")
b = J("b")

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

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

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

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.r: E = None
        self.y: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: J = None
        self.p: J = None
        self.x: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: F = None
        self.q: B = None
        self.z: J = None
        self.p: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: D = None
        self.r: J = None
        self.s: B = None
        self.p: G = None
        self.z: G = None
        self.w: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: G = None
        self.x: H = None
        self.s: C = None
        self.q: F = None
        self.o: H = None
        self.u: E = None
        self.w: D = None
        self.y: E = None
        self.p: H = None
        self.txt = txt

i = A("i")
d = B("d")
m = C("m")
l = D("l")
f = E("f")
g = F("g")
n = G("n")
j = H("j")
h = I("h")
b = J("b")

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