class A:
    def __init__(self, txt: str):
        self.p: H = None
        self.w: D = None
        self.s: C = None
        self.r: C = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.r: H = None
        self.q: F = None
        self.u: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: F = None
        self.t: B = None
        self.v: C = None
        self.w: F = None
        self.r: I = None
        self.x: F = None
        self.o: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: J = None
        self.v: E = None
        self.x: H = None
        self.o: J = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.r: H = None
        self.q: F = None
        self.u: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: F = None
        self.t: B = None
        self.v: C = None
        self.w: F = None
        self.r: I = None
        self.x: F = None
        self.o: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: J = None
        self.v: E = None
        self.x: H = None
        self.o: J = None
        self.txt = txt

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

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

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