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

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.r: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: A = None
        self.x: A = None
        self.z: H = None
        self.w: G = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.r: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: A = None
        self.x: A = None
        self.z: H = None
        self.w: G = None
        self.txt = txt

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

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

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