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

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

class C:
    def __init__(self, txt: str):
        self.q: G = None
        self.p: G = None
        self.o: J = None
        self.x: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: F = None
        self.t: J = None
        self.w: F = None
        self.v: E = None
        self.q: C = None
        self.z: F = None
        self.s: I = None
        self.o: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: J = None
        self.u: D = None
        self.x: H = None
        self.v: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: J = None
        self.u: C = None
        self.v: J = None
        self.x: B = None
        self.t: C = None
        self.s: B = None
        self.o: A = None
        self.y: H = None
        self.r: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.y: A = None
        self.o: E = None
        self.r: D = None
        self.w: F = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.w: I = None
        self.t: F = None
        self.y: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: G = None
        self.p: G = None
        self.o: J = None
        self.x: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: F = None
        self.t: J = None
        self.w: F = None
        self.v: E = None
        self.q: C = None
        self.z: F = None
        self.s: I = None
        self.o: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: J = None
        self.u: D = None
        self.x: H = None
        self.v: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: J = None
        self.u: C = None
        self.v: J = None
        self.x: B = None
        self.t: C = None
        self.s: B = None
        self.o: A = None
        self.y: H = None
        self.r: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.y: A = None
        self.o: E = None
        self.r: D = None
        self.w: F = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.w: I = None
        self.t: F = None
        self.y: B = None
        self.txt = txt

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

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