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

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.p: F = None
        self.w: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: G = None
        self.v: D = None
        self.q: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: D = None
        self.x: C = None
        self.u: E = None
        self.o: B = None
        self.y: C = None
        self.s: G = None
        self.v: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: F = None
        self.x: H = None
        self.v: I = None
        self.y: E = None
        self.t: E = None
        self.p: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: A = None
        self.p: B = None
        self.u: H = None
        self.y: H = None
        self.v: B = None
        self.o: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.p: F = None
        self.w: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: G = None
        self.v: D = None
        self.q: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: D = None
        self.x: C = None
        self.u: E = None
        self.o: B = None
        self.y: C = None
        self.s: G = None
        self.v: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: F = None
        self.x: H = None
        self.v: I = None
        self.y: E = None
        self.t: E = None
        self.p: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: A = None
        self.p: B = None
        self.u: H = None
        self.y: H = None
        self.v: B = None
        self.o: F = None
        self.txt = txt

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

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