class A:
    def __init__(self, txt: str):
        self.s: B = None
        self.z: F = None
        self.p: B = None
        self.y: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: I = None
        self.v: I = None
        self.w: C = None
        self.q: H = None
        self.t: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.z: F = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.w: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: C = None
        self.t: F = None
        self.y: J = None
        self.w: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: C = None
        self.x: A = None
        self.txt = txt

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

e.s = l
e.p = l
e.z = a
e.y = g
l.p = n
l.v = n
l.w = d
l.t = d
l.q = j
d.z = h
h.v = l
h.z = a
g.o = m
g.y = m
g.z = n
g.w = a
g.s = a
g.v = a
g.r = a
g.t = e
g.p = h
a.s = j
m.v = a
m.w = l
j.x = d
j.t = a
j.y = i
j.w = i
n.r = i
i.s = d
i.x = e
assert l.p.r.s.z.z.s.y.txt == "
class A:
    def __init__(self, txt: str):
        self.s: B = None
        self.z: F = None
        self.p: B = None
        self.y: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: I = None
        self.v: I = None
        self.w: C = None
        self.q: H = None
        self.t: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.z: F = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.w: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: C = None
        self.t: F = None
        self.y: J = None
        self.w: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: C = None
        self.x: A = None
        self.txt = txt

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

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