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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.v: C = None
        self.z: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.x: I = None
        self.s: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: F = None
        self.s: B = None
        self.t: F = None
        self.z: E = None
        self.v: F = None
        self.u: F = None
        self.y: D = None
        self.q: F = None
        self.r: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: C = None
        self.r: A = None
        self.p: F = None
        self.t: C = None
        self.y: H = None
        self.x: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.v: C = None
        self.z: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.x: I = None
        self.s: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: F = None
        self.s: B = None
        self.t: F = None
        self.z: E = None
        self.v: F = None
        self.u: F = None
        self.y: D = None
        self.q: F = None
        self.r: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: C = None
        self.r: A = None
        self.p: F = None
        self.t: C = None
        self.y: H = None
        self.x: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

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

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