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

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.w: D = None
        self.u: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: I = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: G = None
        self.t: G = None
        self.p: G = None
        self.r: B = None
        self.txt = txt

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

k = A("k")
i = B("i")
a = C("a")
d = D("d")
j = E("j")
g = F("g")
n = G("n")
f = H("f")
h = I("h")
l = J("l")

k.v = f
k.y = f
k.x = g
k.t = j
i.o = n
i.w = d
i.u = g
a.y = n
a.z = i
a.p = i
a.x = h
a.q = k
a.o = j
a.u = l
d.p = h
j.x = g
j.y = i
g.r = i
g.w = f
g.q = h
g.p = h
g.x = k
g.v = j
g.z = l
g.u = l
n.u = f
f.w = i
f.x = i
f.o = l
f.z = l
f.t = l
f.s = d
f.y = n
f.u = g
f.q = g
f.r = g
h.w = n
h.t = n
h.p = n
h.r = i
l.w = a
l.s = f
l.q = j
l.x = k
l.u = k
l.p = n
l.t = h
assert j.x.x.t.x.v.y.txt == "
class A:
    def __init__(self, txt: str):
        self.v: H = None
        self.x: F = None
        self.y: H = None
        self.t: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.w: D = None
        self.u: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: I = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.u: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: G = None
        self.t: G = None
        self.p: G = None
        self.r: B = None
        self.txt = txt

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

k = A("k")
i = B("i")
a = C("a")
d = D("d")
j = E("j")
g = F("g")
n = G("n")
f = H("f")
h = I("h")
l = J("l")

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