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

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

class C:
    def __init__(self, txt: str):
        self.y: I = None
        self.x: A = None
        self.q: B = None
        self.u: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: G = None
        self.p: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.q: H = None
        self.t: F = None
        self.s: F = None
        self.w: C = None
        self.o: A = None
        self.u: A = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: J = None
        self.v: D = None
        self.p: G = None
        self.t: D = None
        self.z: D = None
        self.u: I = None
        self.q: F = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.o: E = None
        self.z: I = None
        self.x: C = None
        self.u: E = None
        self.txt = txt

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

e.p = h
e.o = d
e.v = i
a.o = g
a.r = g
a.w = f
a.x = f
a.v = d
a.u = d
a.q = i
a.y = l
d.y = f
d.x = e
d.u = e
d.q = a
b.t = i
b.p = i
h.v = g
h.q = g
h.t = c
h.s = c
h.w = d
h.o = e
h.u = e
c.u = d
c.s = l
c.p = l
c.v = g
c.q = g
c.t = b
c.w = i
c.o = h
i.t = e
i.w = e
i.z = l
i.o = l
i.q = f
i.v = d
i.p = b
g.w = l
g.v = b
g.t = b
g.z = b
g.p = i
g.u = f
g.q = c
f.x = l
f.p = a
f.q = i
f.r = i
f.w = c
f.u = e
f.t = g
f.s = d
l.o = h
l.u = h
l.z = f
l.x = d
assert a.v.y.p.x.u.p.o.v.z.x.txt == "
class A:
    def __init__(self, txt: str):
        self.p: E = None
        self.o: C = None
        self.v: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: I = None
        self.x: A = None
        self.q: B = None
        self.u: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: G = None
        self.p: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.q: H = None
        self.t: F = None
        self.s: F = None
        self.w: C = None
        self.o: A = None
        self.u: A = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: J = None
        self.v: D = None
        self.p: G = None
        self.t: D = None
        self.z: D = None
        self.u: I = None
        self.q: F = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.o: E = None
        self.z: I = None
        self.x: C = None
        self.u: E = None
        self.txt = txt

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

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