class A:
    def __init__(self, txt: str):
        self.o: C = None
        self.z: H = None
        self.y: B = None
        self.p: I = None
        self.x: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: H = None
        self.r: J = None
        self.z: E = None
        self.o: B = None
        self.v: B = None
        self.u: J = None
        self.w: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.s: C = None
        self.q: G = None
        self.u: G = None
        self.v: E = None
        self.y: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: B = None
        self.w: D = None
        self.y: C = None
        self.v: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: J = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.x: H = None
        self.t: H = None
        self.z: E = None
        self.p: E = None
        self.q: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: H = None
        self.r: J = None
        self.z: E = None
        self.o: B = None
        self.v: B = None
        self.u: J = None
        self.w: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.s: C = None
        self.q: G = None
        self.u: G = None
        self.v: E = None
        self.y: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: B = None
        self.w: D = None
        self.y: C = None
        self.v: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: J = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.x: H = None
        self.t: H = None
        self.z: E = None
        self.p: E = None
        self.q: G = None
        self.txt = txt

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

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