class A:
    def __init__(self, txt: str):
        self.t: H = None
        self.z: D = None
        self.v: E = None
        self.s: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.w: A = None
        self.v: C = None
        self.x: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: I = None
        self.s: F = None
        self.r: A = None
        self.x: A = None
        self.q: I = None
        self.o: J = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: F = None
        self.p: A = None
        self.v: J = None
        self.q: J = None
        self.z: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.q: J = None
        self.v: J = None
        self.s: D = None
        self.y: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.z: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.v: C = None
        self.y: B = None
        self.u: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: C = None
        self.s: C = None
        self.x: A = None
        self.y: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: G = None
        self.r: A = None
        self.p: H = None
        self.v: E = None
        self.u: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.w: A = None
        self.v: C = None
        self.x: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: I = None
        self.s: F = None
        self.r: A = None
        self.x: A = None
        self.q: I = None
        self.o: J = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: F = None
        self.p: A = None
        self.v: J = None
        self.q: J = None
        self.z: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.q: J = None
        self.v: J = None
        self.s: D = None
        self.y: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.z: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.v: C = None
        self.y: B = None
        self.u: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: C = None
        self.s: C = None
        self.x: A = None
        self.y: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: G = None
        self.r: A = None
        self.p: H = None
        self.v: E = None
        self.u: B = None
        self.txt = txt

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

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