class A:
    def __init__(self, txt: str):
        self.o: I = None
        self.q: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: G = None
        self.s: F = None
        self.o: G = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: B = None
        self.z: D = None
        self.u: F = None
        self.w: I = None
        self.y: I = None
        self.r: F = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: G = None
        self.s: F = None
        self.o: G = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: B = None
        self.z: D = None
        self.u: F = None
        self.w: I = None
        self.y: I = None
        self.r: F = None
        self.txt = txt

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

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

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