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

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

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

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.u: E = None
        self.y: C = None
        self.q: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.y: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.x: I = None
        self.t: G = None
        self.y: G = None
        self.u: D = None
        self.w: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: B = None
        self.p: E = None
        self.x: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: F = None
        self.w: I = None
        self.x: A = None
        self.y: B = None
        self.o: G = None
        self.t: I = None
        self.s: D = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.u: E = None
        self.y: C = None
        self.q: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.y: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.x: I = None
        self.t: G = None
        self.y: G = None
        self.u: D = None
        self.w: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: B = None
        self.p: E = None
        self.x: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: F = None
        self.w: I = None
        self.x: A = None
        self.y: B = None
        self.o: G = None
        self.t: I = None
        self.s: D = None
        self.txt = txt

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

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

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