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

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.o: C = None
        self.w: I = None
        self.q: E = None
        self.u: A = None
        self.p: A = None
        self.s: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: H = None
        self.x: E = None
        self.s: E = None
        self.o: H = None
        self.t: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.t: G = None
        self.o: B = None
        self.v: G = None
        self.r: B = None
        self.x: A = None
        self.q: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: G = None
        self.o: I = None
        self.u: G = None
        self.p: A = None
        self.q: A = None
        self.x: G = None
        self.v: F = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.t: F = None
        self.o: F = None
        self.u: B = None
        self.s: G = None
        self.r: F = None
        self.q: E = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.o: C = None
        self.w: I = None
        self.q: E = None
        self.u: A = None
        self.p: A = None
        self.s: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: H = None
        self.x: E = None
        self.s: E = None
        self.o: H = None
        self.t: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.t: G = None
        self.o: B = None
        self.v: G = None
        self.r: B = None
        self.x: A = None
        self.q: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: G = None
        self.o: I = None
        self.u: G = None
        self.p: A = None
        self.q: A = None
        self.x: G = None
        self.v: F = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.t: F = None
        self.o: F = None
        self.u: B = None
        self.s: G = None
        self.r: F = None
        self.q: E = None
        self.txt = txt

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

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

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