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

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

class C:
    def __init__(self, txt: str):
        self.s: J = None
        self.t: B = None
        self.q: I = None
        self.r: D = None
        self.z: A = None
        self.x: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.o: J = None
        self.w: G = None
        self.z: A = None
        self.v: B = None
        self.p: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: I = None
        self.z: C = None
        self.w: A = None
        self.p: D = None
        self.s: G = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.p: D = None
        self.u: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: J = None
        self.t: B = None
        self.q: I = None
        self.r: D = None
        self.z: A = None
        self.x: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.o: J = None
        self.w: G = None
        self.z: A = None
        self.v: B = None
        self.p: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: I = None
        self.z: C = None
        self.w: A = None
        self.p: D = None
        self.s: G = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.p: D = None
        self.u: E = None
        self.txt = txt

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

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