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

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.z: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: I = None
        self.o: F = None
        self.v: H = None
        self.w: B = None
        self.s: G = None
        self.q: A = None
        self.u: H = None
        self.t: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: B = None
        self.s: F = None
        self.q: A = None
        self.u: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: I = None
        self.o: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: D = None
        self.p: E = None
        self.z: G = None
        self.w: E = None
        self.q: C = None
        self.x: G = None
        self.y: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: A = None
        self.p: D = None
        self.z: A = None
        self.y: B = None
        self.u: G = None
        self.q: A = None
        self.v: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.z: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: I = None
        self.o: F = None
        self.v: H = None
        self.w: B = None
        self.s: G = None
        self.q: A = None
        self.u: H = None
        self.t: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: B = None
        self.s: F = None
        self.q: A = None
        self.u: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: I = None
        self.o: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: D = None
        self.p: E = None
        self.z: G = None
        self.w: E = None
        self.q: C = None
        self.x: G = None
        self.y: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: A = None
        self.p: D = None
        self.z: A = None
        self.y: B = None
        self.u: G = None
        self.q: A = None
        self.v: G = None
        self.txt = txt

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

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