class A:
    def __init__(self, txt: str):
        self.u: B = None
        self.z: G = None
        self.p: J = None
        self.y: G = None
        self.r: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.t: H = None
        self.q: F = None
        self.s: E = None
        self.o: C = None
        self.y: E = None
        self.p: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: J = None
        self.o: C = None
        self.q: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: I = None
        self.z: C = None
        self.txt = txt

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

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

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.t: H = None
        self.q: F = None
        self.s: E = None
        self.o: C = None
        self.y: E = None
        self.p: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: J = None
        self.o: C = None
        self.q: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: I = None
        self.z: C = None
        self.txt = txt

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

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

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

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

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

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