class A:
    def __init__(self, txt: str):
        self.o: D = None
        self.y: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.p: F = None
        self.z: F = None
        self.y: E = None
        self.w: G = None
        self.q: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: E = None
        self.v: B = None
        self.p: G = None
        self.t: F = None
        self.q: G = None
        self.s: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.s: G = None
        self.r: G = None
        self.y: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.y: F = None
        self.t: D = None
        self.s: C = None
        self.v: E = None
        self.p: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.p: A = None
        self.y: D = None
        self.v: A = None
        self.r: A = None
        self.t: A = None
        self.s: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.p: F = None
        self.z: F = None
        self.y: E = None
        self.w: G = None
        self.q: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: E = None
        self.v: B = None
        self.p: G = None
        self.t: F = None
        self.q: G = None
        self.s: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.s: G = None
        self.r: G = None
        self.y: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.y: F = None
        self.t: D = None
        self.s: C = None
        self.v: E = None
        self.p: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.p: A = None
        self.y: D = None
        self.v: A = None
        self.r: A = None
        self.t: A = None
        self.s: C = None
        self.txt = txt

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

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