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

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

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.o: A = None
        self.w: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: A = None
        self.t: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: A = None
        self.r: F = None
        self.x: J = None
        self.txt = txt

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.o: A = None
        self.w: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: A = None
        self.t: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: A = None
        self.r: F = None
        self.x: J = None
        self.txt = txt

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

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

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

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

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