class A:
    def __init__(self, txt: str):
        self.o: D = None
        self.v: F = None
        self.p: I = None
        self.r: C = None
        self.s: I = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: J = None
        self.z: G = None
        self.t: B = None
        self.w: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.v: C = None
        self.t: D = None
        self.u: C = None
        self.w: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: D = None
        self.u: A = None
        self.s: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: J = None
        self.z: G = None
        self.t: B = None
        self.w: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.v: C = None
        self.t: D = None
        self.u: C = None
        self.w: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: D = None
        self.u: A = None
        self.s: G = None
        self.txt = txt

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

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