class A:
    def __init__(self, txt: str):
        self.o: F = None
        self.z: H = None
        self.w: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: G = None
        self.u: I = None
        self.z: A = None
        self.t: H = None
        self.q: I = None
        self.v: F = None
        self.x: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: A = None
        self.t: F = None
        self.s: H = None
        self.z: A = None
        self.x: D = None
        self.u: J = None
        self.txt = txt

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

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: G = None
        self.u: I = None
        self.z: A = None
        self.t: H = None
        self.q: I = None
        self.v: F = None
        self.x: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: A = None
        self.t: F = None
        self.s: H = None
        self.z: A = None
        self.x: D = None
        self.u: J = None
        self.txt = txt

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

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

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

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

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

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

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