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

class B:
    def __init__(self, txt: str):
        self.w: D = None
        self.z: G = None
        self.q: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: A = None
        self.s: D = None
        self.y: H = None
        self.o: D = None
        self.z: A = None
        self.w: G = None
        self.t: D = None
        self.u: A = None
        self.v: B = None
        self.q: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: G = None
        self.w: H = None
        self.y: D = None
        self.p: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.v: D = None
        self.z: A = None
        self.x: A = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.y: C = None
        self.txt = txt

g = A("g")
d = B("d")
h = C("h")
j = D("j")
m = E("m")
n = F("n")
i = G("i")
a = H("a")
l = I("l")
e = J("e")

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

class B:
    def __init__(self, txt: str):
        self.w: D = None
        self.z: G = None
        self.q: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: A = None
        self.s: D = None
        self.y: H = None
        self.o: D = None
        self.z: A = None
        self.w: G = None
        self.t: D = None
        self.u: A = None
        self.v: B = None
        self.q: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: G = None
        self.w: H = None
        self.y: D = None
        self.p: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.v: D = None
        self.z: A = None
        self.x: A = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.y: C = None
        self.txt = txt

g = A("g")
d = B("d")
h = C("h")
j = D("j")
m = E("m")
n = F("n")
i = G("i")
a = H("a")
l = I("l")
e = J("e")

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