class A:
    def __init__(self, txt: str):
        self.x: C = None
        self.r: F = None
        self.o: H = None
        self.v: C = None
        self.y: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: F = None
        self.z: E = None
        self.q: A = None
        self.y: H = None
        self.v: I = None
        self.w: D = None
        self.o: I = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.z: C = None
        self.t: A = None
        self.o: G = None
        self.v: I = None
        self.x: I = None
        self.w: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: J = None
        self.z: J = None
        self.r: E = None
        self.u: F = None
        self.o: A = None
        self.w: B = None
        self.s: H = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.o: B = None
        self.t: B = None
        self.y: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: F = None
        self.z: E = None
        self.q: A = None
        self.y: H = None
        self.v: I = None
        self.w: D = None
        self.o: I = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.z: C = None
        self.t: A = None
        self.o: G = None
        self.v: I = None
        self.x: I = None
        self.w: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: J = None
        self.z: J = None
        self.r: E = None
        self.u: F = None
        self.o: A = None
        self.w: B = None
        self.s: H = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.o: B = None
        self.t: B = None
        self.y: H = None
        self.txt = txt

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

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