class A:
    def __init__(self, txt: str):
        self.s: G = None
        self.u: C = None
        self.r: C = None
        self.y: D = None
        self.w: F = None
        self.x: I = None
        self.q: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.v: H = None
        self.o: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: F = None
        self.u: I = None
        self.q: C = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.v: B = None
        self.z: D = None
        self.p: D = None
        self.w: A = None
        self.r: D = None
        self.x: B = None
        self.y: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.v: H = None
        self.o: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: F = None
        self.u: I = None
        self.q: C = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.v: B = None
        self.z: D = None
        self.p: D = None
        self.w: A = None
        self.r: D = None
        self.x: B = None
        self.y: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

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

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