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

class B:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: F = None
        self.t: I = None
        self.v: F = None
        self.r: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.o: I = None
        self.p: A = None
        self.y: A = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.s: B = None
        self.y: C = None
        self.x: A = None
        self.p: C = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: F = None
        self.t: I = None
        self.v: F = None
        self.r: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.o: I = None
        self.p: A = None
        self.y: A = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.s: B = None
        self.y: C = None
        self.x: A = None
        self.p: C = None
        self.txt = txt

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

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

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

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