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

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

class C:
    def __init__(self, txt: str):
        self.q: B = None
        self.p: D = None
        self.w: J = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.p: G = None
        self.x: I = None
        self.o: A = None
        self.z: J = None
        self.q: G = None
        self.txt = txt

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

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

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

j.t = n
j.x = f
j.v = m
j.y = m
j.w = m
j.r = h
j.p = h
j.z = h
j.o = b
j.u = a
i.r = a
i.u = h
i.t = n
i.w = b
i.z = j
i.p = g
i.q = g
b.q = i
b.p = n
b.w = f
n.x = h
n.s = h
n.p = j
n.u = b
g.q = b
g.w = a
g.p = a
g.s = i
g.r = i
g.y = f
g.o = h
g.z = h
g.v = n
g.t = d
m.u = h
m.r = h
m.p = h
m.w = n
m.s = j
m.z = b
m.x = b
m.o = i
m.t = a
a.u = m
a.t = m
d.p = a
d.q = a
d.x = h
d.o = j
d.z = f
h.z = d
h.w = n
f.r = j
f.y = a
f.u = g
assert j.o.p.x.w.p.t.p.t.txt == "
class A:
    def __init__(self, txt: str):
        self.t: D = None
        self.x: J = None
        self.v: F = None
        self.r: I = None
        self.p: I = None
        self.o: C = None
        self.y: F = None
        self.u: G = None
        self.w: F = None
        self.z: I = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: B = None
        self.p: D = None
        self.w: J = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.p: G = None
        self.x: I = None
        self.o: A = None
        self.z: J = None
        self.q: G = None
        self.txt = txt

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

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

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

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