class A:
    def __init__(self, txt: str):
        self.t: G = None
        self.z: H = None
        self.y: G = None
        self.u: B = None
        self.v: I = None
        self.o: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: I = None
        self.t: E = None
        self.q: J = None
        self.s: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: G = None
        self.t: E = None
        self.o: G = None
        self.w: F = None
        self.y: I = None
        self.r: H = None
        self.p: E = None
        self.x: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: J = None
        self.s: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.w: A = None
        self.v: A = None
        self.u: C = None
        self.z: D = None
        self.p: B = None
        self.o: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: I = None
        self.t: E = None
        self.q: J = None
        self.s: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: G = None
        self.t: E = None
        self.o: G = None
        self.w: F = None
        self.y: I = None
        self.r: H = None
        self.p: E = None
        self.x: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: J = None
        self.s: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.w: A = None
        self.v: A = None
        self.u: C = None
        self.z: D = None
        self.p: B = None
        self.o: D = None
        self.txt = txt

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

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