class A:
    def __init__(self, txt: str):
        self.x: G = None
        self.z: H = None
        self.p: C = None
        self.t: H = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.s: A = None
        self.q: C = None
        self.r: A = None
        self.v: C = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.s: A = None
        self.q: C = None
        self.r: A = None
        self.v: C = None
        self.txt = txt

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

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

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

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

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

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

j.x = n
j.z = l
j.t = l
j.p = e
a.z = m
a.v = m
a.r = m
e.q = n
e.y = n
e.u = j
e.r = d
e.v = d
e.x = i
e.s = m
e.z = a
d.s = j
d.r = j
d.q = e
d.v = e
c.w = d
c.q = a
c.z = m
i.t = n
i.p = d
i.s = c
n.w = a
n.u = a
n.q = a
n.t = l
n.s = l
n.p = l
n.z = i
n.r = d
n.y = e
l.z = a
l.x = a
l.q = n
l.s = m
l.y = c
l.v = i
m.s = n
m.t = n
m.v = n
m.q = n
m.w = a
m.r = c
m.u = j
m.z = j
m.p = j
assert c.z.w.v.w.r.q.y.txt == "e"