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

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

class C:
    def __init__(self, txt: str):
        self.u: I = None
        self.t: E = None
        self.v: H = None
        self.y: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: D = None
        self.u: A = None
        self.txt = txt

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: I = None
        self.t: E = None
        self.v: H = None
        self.y: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: D = None
        self.u: A = None
        self.txt = txt

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

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

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

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

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