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

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: F = None
        self.o: C = None
        self.u: A = None
        self.x: I = None
        self.p: H = None
        self.w: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: A = None
        self.q: D = None
        self.v: A = None
        self.txt = txt

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

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

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: F = None
        self.o: C = None
        self.u: A = None
        self.x: I = None
        self.p: H = None
        self.w: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: A = None
        self.q: D = None
        self.v: A = None
        self.txt = txt

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

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

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

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

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