class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.w: E = None
        self.o: I = None
        self.t: E = None
        self.p: G = None
        self.y: I = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: D = None
        self.s: I = None
        self.x: J = None
        self.o: D = None
        self.p: B = None
        self.u: B = None
        self.r: D = None
        self.z: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.s: H = None
        self.q: B = None
        self.v: B = None
        self.w: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: I = None
        self.t: C = None
        self.v: E = None
        self.r: D = None
        self.q: J = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.y: B = None
        self.s: G = None
        self.r: A = None
        self.w: F = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: D = None
        self.s: I = None
        self.x: J = None
        self.o: D = None
        self.p: B = None
        self.u: B = None
        self.r: D = None
        self.z: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.s: H = None
        self.q: B = None
        self.v: B = None
        self.w: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.w: I = None
        self.t: C = None
        self.v: E = None
        self.r: D = None
        self.q: J = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.y: B = None
        self.s: G = None
        self.r: A = None
        self.w: F = None
        self.txt = txt

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

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