class A:
    def __init__(self, txt: str):
        self.s: F = None
        self.z: D = None
        self.w: H = None
        self.x: B = None
        self.u: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: D = None
        self.t: G = None
        self.w: D = None
        self.s: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.o: D = None
        self.v: B = None
        self.r: D = None
        self.q: E = None
        self.w: A = None
        self.t: H = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.y: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: C = None
        self.w: G = None
        self.o: G = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: D = None
        self.t: G = None
        self.w: D = None
        self.s: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.o: D = None
        self.v: B = None
        self.r: D = None
        self.q: E = None
        self.w: A = None
        self.t: H = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.y: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: C = None
        self.w: G = None
        self.o: G = None
        self.txt = txt

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

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

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