class A:
    def __init__(self, txt: str):
        self.w: C = None
        self.u: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: E = None
        self.y: I = None
        self.v: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.s: E = None
        self.y: C = None
        self.p: G = None
        self.t: I = None
        self.v: B = None
        self.w: B = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: E = None
        self.y: I = None
        self.v: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.s: E = None
        self.y: C = None
        self.p: G = None
        self.t: I = None
        self.v: B = None
        self.w: B = None
        self.txt = txt

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

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

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

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