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

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: I = None
        self.z: J = None
        self.r: D = None
        self.q: J = None
        self.s: D = None
        self.t: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.p: D = None
        self.v: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: F = None
        self.s: J = None
        self.y: B = None
        self.v: D = None
        self.o: F = None
        self.t: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: D = None
        self.p: G = None
        self.t: H = None
        self.w: C = None
        self.o: D = None
        self.x: J = None
        self.v: A = None
        self.u: B = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: I = None
        self.z: J = None
        self.r: D = None
        self.q: J = None
        self.s: D = None
        self.t: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.p: D = None
        self.v: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: F = None
        self.s: J = None
        self.y: B = None
        self.v: D = None
        self.o: F = None
        self.t: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: D = None
        self.p: G = None
        self.t: H = None
        self.w: C = None
        self.o: D = None
        self.x: J = None
        self.v: A = None
        self.u: B = None
        self.txt = txt

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

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

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