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

class B:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.s: E = None
        self.p: H = None
        self.x: B = None
        self.y: E = None
        self.t: C = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.s: E = None
        self.p: H = None
        self.x: B = None
        self.y: E = None
        self.t: C = None
        self.txt = txt

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

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

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

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