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

class B:
    def __init__(self, txt: str):
        self.t: E = None
        self.x: J = None
        self.p: D = None
        self.r: G = None
        self.v: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.w: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: A = None
        self.r: B = None
        self.u: H = None
        self.w: F = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.y: A = None
        self.w: E = None
        self.u: E = None
        self.v: I = None
        self.z: B = None
        self.p: C = None
        self.r: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: J = None
        self.q: J = None
        self.w: A = None
        self.y: H = None
        self.v: E = None
        self.z: H = None
        self.o: H = None
        self.u: F = None
        self.t: J = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: E = None
        self.x: J = None
        self.p: D = None
        self.r: G = None
        self.v: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.w: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: A = None
        self.r: B = None
        self.u: H = None
        self.w: F = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.y: A = None
        self.w: E = None
        self.u: E = None
        self.v: I = None
        self.z: B = None
        self.p: C = None
        self.r: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: J = None
        self.q: J = None
        self.w: A = None
        self.y: H = None
        self.v: E = None
        self.z: H = None
        self.o: H = None
        self.u: F = None
        self.t: J = None
        self.txt = txt

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

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

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