class A:
    def __init__(self, txt: str):
        self.s: H = None
        self.t: G = None
        self.x: B = None
        self.y: E = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.s: J = None
        self.p: B = None
        self.y: C = None
        self.v: I = None
        self.z: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: J = None
        self.x: B = None
        self.z: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.u: I = None
        self.t: F = None
        self.x: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: J = None
        self.w: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: E = None
        self.r: B = None
        self.u: D = None
        self.o: A = None
        self.s: C = None
        self.v: H = None
        self.w: E = None
        self.t: C = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.s: J = None
        self.p: B = None
        self.y: C = None
        self.v: I = None
        self.z: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: J = None
        self.x: B = None
        self.z: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.u: I = None
        self.t: F = None
        self.x: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: J = None
        self.w: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: E = None
        self.r: B = None
        self.u: D = None
        self.o: A = None
        self.s: C = None
        self.v: H = None
        self.w: E = None
        self.t: C = None
        self.txt = txt

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

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