class A:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: B = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: B = None
        self.p: A = None
        self.x: J = None
        self.q: F = None
        self.v: A = None
        self.w: H = None
        self.y: D = None
        self.o: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: G = None
        self.u: C = None
        self.t: J = None
        self.x: B = None
        self.y: B = None
        self.w: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: F = None
        self.u: E = None
        self.w: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: E = None
        self.o: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: B = None
        self.r: E = None
        self.p: G = None
        self.v: B = None
        self.z: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: B = None
        self.q: A = None
        self.w: H = None
        self.o: G = None
        self.z: H = None
        self.s: I = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: B = None
        self.p: A = None
        self.x: J = None
        self.q: F = None
        self.v: A = None
        self.w: H = None
        self.y: D = None
        self.o: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: G = None
        self.u: C = None
        self.t: J = None
        self.x: B = None
        self.y: B = None
        self.w: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: F = None
        self.u: E = None
        self.w: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: E = None
        self.o: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: B = None
        self.r: E = None
        self.p: G = None
        self.v: B = None
        self.z: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: B = None
        self.q: A = None
        self.w: H = None
        self.o: G = None
        self.z: H = None
        self.s: I = None
        self.txt = txt

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

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