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

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.p: D = None
        self.v: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: I = None
        self.v: B = None
        self.r: D = None
        self.y: H = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: A = None
        self.p: D = None
        self.v: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: I = None
        self.v: B = None
        self.r: D = None
        self.y: H = None
        self.txt = txt

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

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

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

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

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