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

class B:
    def __init__(self, txt: str):
        self.q: A = None
        self.o: C = None
        self.y: G = None
        self.s: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: J = None
        self.r: A = None
        self.z: F = None
        self.y: G = None
        self.w: I = None
        self.q: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.t: E = None
        self.z: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: J = None
        self.q: B = None
        self.o: B = None
        self.v: D = None
        self.s: J = None
        self.w: F = None
        self.y: B = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: F = None
        self.y: A = None
        self.u: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: A = None
        self.o: C = None
        self.y: G = None
        self.s: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: J = None
        self.r: A = None
        self.z: F = None
        self.y: G = None
        self.w: I = None
        self.q: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.u: E = None
        self.t: E = None
        self.z: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: J = None
        self.q: B = None
        self.o: B = None
        self.v: D = None
        self.s: J = None
        self.w: F = None
        self.y: B = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: F = None
        self.y: A = None
        self.u: G = None
        self.txt = txt

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

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