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

class B:
    def __init__(self, txt: str):
        self.z: D = None
        self.t: H = None
        self.v: G = None
        self.u: C = None
        self.y: D = None
        self.q: D = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: H = None
        self.v: A = None
        self.p: B = None
        self.y: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: D = None
        self.t: H = None
        self.v: G = None
        self.u: C = None
        self.y: D = None
        self.q: D = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: H = None
        self.v: A = None
        self.p: B = None
        self.y: C = None
        self.txt = txt

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

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