class A:
    def __init__(self, txt: str):
        self.y: E = None
        self.q: F = None
        self.z: I = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: D = None
        self.q: G = None
        self.v: G = None
        self.txt = txt

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.t: G = None
        self.q: C = None
        self.o: E = None
        self.r: E = None
        self.p: B = None
        self.x: B = None
        self.z: H = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: D = None
        self.q: G = None
        self.v: G = None
        self.txt = txt

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.t: G = None
        self.q: C = None
        self.o: E = None
        self.r: E = None
        self.p: B = None
        self.x: B = None
        self.z: H = None
        self.txt = txt

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

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

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