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

class B:
    def __init__(self, txt: str):
        self.v: J = None
        self.p: G = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.t: E = None
        self.y: D = None
        self.x: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.x: F = None
        self.q: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: A = None
        self.z: D = None
        self.q: E = None
        self.y: F = None
        self.u: F = None
        self.o: F = None
        self.r: E = None
        self.t: G = None
        self.w: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: J = None
        self.p: G = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.t: E = None
        self.y: D = None
        self.x: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.x: F = None
        self.q: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: A = None
        self.z: D = None
        self.q: E = None
        self.y: F = None
        self.u: F = None
        self.o: F = None
        self.r: E = None
        self.t: G = None
        self.w: H = None
        self.txt = txt

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

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