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

class B:
    def __init__(self, txt: str):
        self.u: H = None
        self.q: H = None
        self.w: F = None
        self.z: H = None
        self.x: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: G = None
        self.x: A = None
        self.s: H = None
        self.v: A = None
        self.y: D = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: D = None
        self.s: H = None
        self.w: H = None
        self.q: E = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.r: B = None
        self.v: A = None
        self.z: H = None
        self.q: B = None
        self.y: D = None
        self.w: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: H = None
        self.q: H = None
        self.w: F = None
        self.z: H = None
        self.x: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: G = None
        self.x: A = None
        self.s: H = None
        self.v: A = None
        self.y: D = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: D = None
        self.s: H = None
        self.w: H = None
        self.q: E = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.r: B = None
        self.v: A = None
        self.z: H = None
        self.q: B = None
        self.y: D = None
        self.w: B = None
        self.txt = txt

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

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