class A:
    def __init__(self, txt: str):
        self.w: J = None
        self.t: F = None
        self.p: G = None
        self.q: G = None
        self.o: B = None
        self.r: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: C = None
        self.t: C = None
        self.x: E = None
        self.w: J = None
        self.z: G = None
        self.p: A = None
        self.o: I = None
        self.r: D = None
        self.y: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.z: E = None
        self.x: B = None
        self.t: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: B = None
        self.w: I = None
        self.r: J = None
        self.x: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: C = None
        self.o: C = None
        self.r: J = None
        self.q: D = None
        self.x: J = None
        self.u: J = None
        self.s: C = None
        self.p: E = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.u: G = None
        self.s: F = None
        self.o: E = None
        self.q: I = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: C = None
        self.t: C = None
        self.x: E = None
        self.w: J = None
        self.z: G = None
        self.p: A = None
        self.o: I = None
        self.r: D = None
        self.y: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.z: E = None
        self.x: B = None
        self.t: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: B = None
        self.w: I = None
        self.r: J = None
        self.x: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: C = None
        self.o: C = None
        self.r: J = None
        self.q: D = None
        self.x: J = None
        self.u: J = None
        self.s: C = None
        self.p: E = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.u: G = None
        self.s: F = None
        self.o: E = None
        self.q: I = None
        self.txt = txt

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

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