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

class B:
    def __init__(self, txt: str):
        self.p: J = None
        self.y: E = None
        self.x: C = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.o: C = None
        self.r: D = None
        self.x: G = None
        self.v: J = None
        self.q: C = None
        self.s: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: B = None
        self.w: C = None
        self.x: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: J = None
        self.y: E = None
        self.x: C = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.o: C = None
        self.r: D = None
        self.x: G = None
        self.v: J = None
        self.q: C = None
        self.s: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: B = None
        self.w: C = None
        self.x: C = None
        self.txt = txt

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

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