class A:
    def __init__(self, txt: str):
        self.y: H = None
        self.z: I = None
        self.w: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.w: C = None
        self.s: C = None
        self.o: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.z: G = None
        self.t: D = None
        self.p: F = None
        self.r: J = None
        self.y: J = None
        self.q: B = None
        self.u: C = None
        self.v: J = None
        self.x: C = None
        self.o: G = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.w: C = None
        self.s: C = None
        self.o: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.z: G = None
        self.t: D = None
        self.p: F = None
        self.r: J = None
        self.y: J = None
        self.q: B = None
        self.u: C = None
        self.v: J = None
        self.x: C = None
        self.o: G = None
        self.txt = txt

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

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

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