class A:
    def __init__(self, txt: str):
        self.w: F = None
        self.q: D = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.x: I = None
        self.r: H = None
        self.q: H = None
        self.u: A = None
        self.y: I = None
        self.p: C = None
        self.o: G = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.x: I = None
        self.r: H = None
        self.q: H = None
        self.u: A = None
        self.y: I = None
        self.p: C = None
        self.o: G = None
        self.txt = txt

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

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

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

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

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

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

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

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