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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.p: A = None
        self.w: D = None
        self.s: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: D = None
        self.r: G = None
        self.q: F = None
        self.v: A = None
        self.p: D = None
        self.z: H = None
        self.txt = txt

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

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.p: A = None
        self.w: D = None
        self.s: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: D = None
        self.r: G = None
        self.q: F = None
        self.v: A = None
        self.p: D = None
        self.z: H = None
        self.txt = txt

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

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