class A:
    def __init__(self, txt: str):
        self.x: F = None
        self.w: I = None
        self.u: H = None
        self.r: F = None
        self.q: C = None
        self.o: B = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.z: C = None
        self.t: D = None
        self.u: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: B = None
        self.r: C = None
        self.w: A = None
        self.y: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: D = None
        self.o: D = None
        self.r: G = None
        self.s: J = None
        self.p: H = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.z: C = None
        self.t: D = None
        self.u: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: B = None
        self.r: C = None
        self.w: A = None
        self.y: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: D = None
        self.o: D = None
        self.r: G = None
        self.s: J = None
        self.p: H = None
        self.txt = txt

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

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

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