class A:
    def __init__(self, txt: str):
        self.t: J = None
        self.v: D = None
        self.p: J = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.t: I = None
        self.y: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: J = None
        self.v: J = None
        self.z: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: J = None
        self.y: J = None
        self.q: C = None
        self.p: I = None
        self.v: H = None
        self.r: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: C = None
        self.p: C = None
        self.w: E = None
        self.txt = txt

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

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

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

e.t = a
e.p = a
e.v = h
n.z = f
n.q = f
n.y = i
n.w = i
n.o = m
n.t = k
n.u = j
n.p = e
f.s = a
f.w = a
h.t = m
h.y = a
j.t = a
j.v = a
j.z = f
l.t = a
l.y = a
l.q = f
l.p = m
l.r = m
l.v = i
k.u = e
k.p = j
i.x = f
i.p = f
i.w = j
m.x = h
m.v = n
m.p = f
a.s = j
a.t = k
a.q = k
a.o = f
a.x = l
assert a.x.p.p.w.x.q.w.s.txt == "
class A:
    def __init__(self, txt: str):
        self.t: J = None
        self.v: D = None
        self.p: J = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.t: I = None
        self.y: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: J = None
        self.v: J = None
        self.z: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: J = None
        self.y: J = None
        self.q: C = None
        self.p: I = None
        self.v: H = None
        self.r: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: C = None
        self.p: C = None
        self.w: E = None
        self.txt = txt

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

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

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

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