class A:
    def __init__(self, txt: str):
        self.p: B = None
        self.u: F = None
        self.q: I = None
        self.w: H = None
        self.v: F = None
        self.z: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: H = None
        self.y: G = None
        self.q: F = None
        self.z: G = None
        self.w: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: J = None
        self.p: I = None
        self.w: B = None
        self.q: F = None
        self.t: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.s: I = None
        self.t: D = None
        self.y: G = None
        self.w: I = None
        self.q: G = None
        self.p: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: J = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.r: C = None
        self.y: B = None
        self.x: C = None
        self.z: J = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: H = None
        self.y: G = None
        self.q: F = None
        self.z: G = None
        self.w: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: J = None
        self.p: I = None
        self.w: B = None
        self.q: F = None
        self.t: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.s: I = None
        self.t: D = None
        self.y: G = None
        self.w: I = None
        self.q: G = None
        self.p: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: J = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.r: C = None
        self.y: B = None
        self.x: C = None
        self.z: J = None
        self.txt = txt

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

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

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