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

class B:
    def __init__(self, txt: str):
        self.s: F = None
        self.u: F = None
        self.y: F = None
        self.x: F = None
        self.p: C = None
        self.w: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.x: C = None
        self.r: I = None
        self.q: H = None
        self.u: E = None
        self.o: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: A = None
        self.v: A = None
        self.t: J = None
        self.u: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: F = None
        self.y: E = None
        self.r: E = None
        self.x: B = None
        self.v: J = None
        self.z: A = None
        self.t: I = None
        self.w: A = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.w: F = None
        self.o: H = None
        self.v: A = None
        self.q: E = None
        self.t: D = None
        self.u: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: F = None
        self.u: F = None
        self.y: F = None
        self.x: F = None
        self.p: C = None
        self.w: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.x: C = None
        self.r: I = None
        self.q: H = None
        self.u: E = None
        self.o: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: A = None
        self.v: A = None
        self.t: J = None
        self.u: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: F = None
        self.y: E = None
        self.r: E = None
        self.x: B = None
        self.v: J = None
        self.z: A = None
        self.t: I = None
        self.w: A = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.w: F = None
        self.o: H = None
        self.v: A = None
        self.q: E = None
        self.t: D = None
        self.u: G = None
        self.txt = txt

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

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