class A:
    def __init__(self, txt: str):
        self.s: G = None
        self.q: D = None
        self.x: D = None
        self.p: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: C = None
        self.x: A = None
        self.q: G = None
        self.o: G = None
        self.t: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.q: B = None
        self.x: G = None
        self.o: D = None
        self.z: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: C = None
        self.u: B = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: C = None
        self.x: A = None
        self.q: G = None
        self.o: G = None
        self.t: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.q: B = None
        self.x: G = None
        self.o: D = None
        self.z: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: C = None
        self.u: B = None
        self.txt = txt

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

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

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

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

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

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