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

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

class C:
    def __init__(self, txt: str):
        self.y: F = None
        self.u: A = None
        self.t: I = None
        self.v: F = None
        self.s: A = None
        self.o: D = None
        self.r: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.o: F = None
        self.u: I = None
        self.q: G = None
        self.s: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: B = None
        self.v: G = None
        self.q: G = None
        self.z: B = None
        self.w: C = None
        self.y: B = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.v: I = None
        self.o: A = None
        self.y: E = None
        self.t: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: D = None
        self.u: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: F = None
        self.u: A = None
        self.t: I = None
        self.v: F = None
        self.s: A = None
        self.o: D = None
        self.r: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.o: F = None
        self.u: I = None
        self.q: G = None
        self.s: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: B = None
        self.v: G = None
        self.q: G = None
        self.z: B = None
        self.w: C = None
        self.y: B = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.v: I = None
        self.o: A = None
        self.y: E = None
        self.t: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: D = None
        self.u: D = None
        self.txt = txt

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

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