class A:
    def __init__(self, txt: str):
        self.p: D = None
        self.v: D = None
        self.x: I = None
        self.z: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: D = None
        self.u: A = None
        self.o: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: H = None
        self.x: G = None
        self.q: G = None
        self.s: E = None
        self.u: H = None
        self.w: D = None
        self.v: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.p: C = None
        self.v: B = None
        self.u: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: B = None
        self.r: H = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.p: E = None
        self.q: B = None
        self.o: A = None
        self.r: G = None
        self.t: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: D = None
        self.u: A = None
        self.o: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: H = None
        self.x: G = None
        self.q: G = None
        self.s: E = None
        self.u: H = None
        self.w: D = None
        self.v: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: A = None
        self.p: C = None
        self.v: B = None
        self.u: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: B = None
        self.r: H = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.p: E = None
        self.q: B = None
        self.o: A = None
        self.r: G = None
        self.t: F = None
        self.txt = txt

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

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