class A:
    def __init__(self, txt: str):
        self.v: D = None
        self.x: I = None
        self.w: J = None
        self.t: F = None
        self.p: J = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.x: G = None
        self.v: F = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.x: F = None
        self.y: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: C = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.x: G = None
        self.v: F = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.x: F = None
        self.y: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: C = None
        self.txt = txt

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

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

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