class A:
    def __init__(self, txt: str):
        self.s: J = None
        self.u: I = None
        self.r: J = None
        self.y: H = None
        self.o: J = None
        self.z: E = None
        self.v: H = None
        self.w: I = None
        self.t: J = None
        self.q: J = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.z: A = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.v: F = None
        self.x: C = None
        self.y: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: F = None
        self.u: I = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.z: A = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.v: F = None
        self.x: C = None
        self.y: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: F = None
        self.u: I = None
        self.txt = txt

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

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