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

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.r: C = None
        self.t: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: E = None
        self.v: J = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.z: E = None
        self.r: B = None
        self.q: F = None
        self.txt = txt

f = A("f")
c = B("c")
k = C("k")
g = D("g")
a = E("a")
b = F("b")
n = G("n")
i = H("i")
l = I("l")
j = J("j")

f.y = j
f.t = j
f.z = b
f.r = b
f.s = a
f.x = a
f.q = c
f.u = g
f.v = l
c.w = a
c.z = a
c.o = n
k.q = b
k.o = a
k.s = a
k.y = a
k.r = l
k.w = j
k.z = i
k.x = g
g.p = j
g.t = j
g.r = l
g.y = l
g.q = n
g.z = b
g.u = f
a.v = i
a.r = k
a.t = j
b.z = a
b.v = j
n.o = c
n.w = l
n.q = i
n.v = a
n.t = a
n.u = j
n.r = b
i.v = f
i.u = f
i.w = f
i.z = f
i.t = l
i.y = l
i.r = j
i.s = n
i.x = g
l.x = c
l.t = a
l.v = g
l.u = f
l.q = b
l.z = j
l.w = n
j.z = a
j.r = c
j.q = b
assert l.x.o.u.r.o.w.t.txt == "
class A:
    def __init__(self, txt: str):
        self.y: J = None
        self.t: J = None
        self.z: F = None
        self.s: E = None
        self.q: B = None
        self.u: D = None
        self.r: F = None
        self.v: I = None
        self.x: E = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.r: C = None
        self.t: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: E = None
        self.v: J = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.z: E = None
        self.r: B = None
        self.q: F = None
        self.txt = txt

f = A("f")
c = B("c")
k = C("k")
g = D("g")
a = E("a")
b = F("b")
n = G("n")
i = H("i")
l = I("l")
j = J("j")

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