class A:
    def __init__(self, txt: str):
        self.z: E = None
        self.u: E = None
        self.w: E = None
        self.p: F = None
        self.s: G = None
        self.t: C = None
        self.v: G = None
        self.r: E = None
        self.q: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: I = None
        self.v: A = None
        self.t: D = None
        self.z: D = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: B = None
        self.o: B = None
        self.u: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: I = None
        self.v: A = None
        self.t: D = None
        self.z: D = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: B = None
        self.o: B = None
        self.u: E = None
        self.txt = txt

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

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