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

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.x: F = None
        self.r: D = None
        self.z: A = None
        self.w: C = None
        self.p: F = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.q: D = None
        self.s: C = None
        self.v: B = None
        self.u: F = None
        self.p: D = None
        self.r: E = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.x: F = None
        self.r: D = None
        self.z: A = None
        self.w: C = None
        self.p: F = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.q: D = None
        self.s: C = None
        self.v: B = None
        self.u: F = None
        self.p: D = None
        self.r: E = None
        self.txt = txt

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

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

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