class A:
    def __init__(self, txt: str):
        self.s: H = None
        self.w: G = None
        self.t: I = None
        self.u: H = None
        self.r: D = None
        self.x: J = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.w: F = None
        self.r: H = None
        self.v: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: G = None
        self.z: A = None
        self.q: H = None
        self.v: H = None
        self.s: I = None
        self.r: B = None
        self.x: J = None
        self.u: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.v: J = None
        self.p: I = None
        self.o: A = None
        self.t: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: C = None
        self.u: E = None
        self.r: I = None
        self.t: E = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.z: H = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: F = None
        self.r: H = None
        self.v: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: G = None
        self.z: A = None
        self.q: H = None
        self.v: H = None
        self.s: I = None
        self.r: B = None
        self.x: J = None
        self.u: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.v: J = None
        self.p: I = None
        self.o: A = None
        self.t: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: C = None
        self.u: E = None
        self.r: I = None
        self.t: E = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.z: H = None
        self.txt = txt

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

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