class A:
    def __init__(self, txt: str):
        self.o: G = None
        self.y: B = None
        self.v: I = None
        self.u: B = None
        self.w: D = None
        self.p: H = None
        self.t: H = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: B = None
        self.z: C = None
        self.q: H = None
        self.p: F = None
        self.t: F = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.t: G = None
        self.o: E = None
        self.q: E = None
        self.y: E = None
        self.p: B = None
        self.u: B = None
        self.r: E = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: B = None
        self.z: C = None
        self.q: H = None
        self.p: F = None
        self.t: F = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.t: G = None
        self.o: E = None
        self.q: E = None
        self.y: E = None
        self.p: B = None
        self.u: B = None
        self.r: E = None
        self.txt = txt

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

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

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