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

class B:
    def __init__(self, txt: str):
        self.z: C = None
        self.v: G = None
        self.r: D = None
        self.p: F = None
        self.q: D = None
        self.s: I = None
        self.t: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: H = None
        self.v: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: I = None
        self.u: E = None
        self.x: E = None
        self.v: G = None
        self.w: B = None
        self.y: B = None
        self.s: I = None
        self.t: E = None
        self.txt = txt

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

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

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

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

j = A("j")
c = B("c")
l = C("l")
i = D("i")
e = E("e")
d = F("d")
h = G("h")
m = H("m")
f = I("f")
n = J("n")

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

class B:
    def __init__(self, txt: str):
        self.z: C = None
        self.v: G = None
        self.r: D = None
        self.p: F = None
        self.q: D = None
        self.s: I = None
        self.t: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: H = None
        self.v: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: I = None
        self.u: E = None
        self.x: E = None
        self.v: G = None
        self.w: B = None
        self.y: B = None
        self.s: I = None
        self.t: E = None
        self.txt = txt

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

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

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

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

j = A("j")
c = B("c")
l = C("l")
i = D("i")
e = E("e")
d = F("d")
h = G("h")
m = H("m")
f = I("f")
n = J("n")

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