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

class B:
    def __init__(self, txt: str):
        self.y: G = None
        self.x: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.o: E = None
        self.p: D = None
        self.t: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: E = None
        self.s: B = None
        self.w: H = None
        self.y: C = None
        self.x: H = None
        self.p: C = None
        self.v: F = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.z: H = None
        self.x: F = None
        self.r: D = None
        self.w: J = None
        self.t: B = None
        self.p: C = None
        self.u: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: B = None
        self.w: C = None
        self.o: J = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: G = None
        self.x: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.o: E = None
        self.p: D = None
        self.t: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: E = None
        self.s: B = None
        self.w: H = None
        self.y: C = None
        self.x: H = None
        self.p: C = None
        self.v: F = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.z: H = None
        self.x: F = None
        self.r: D = None
        self.w: J = None
        self.t: B = None
        self.p: C = None
        self.u: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: B = None
        self.w: C = None
        self.o: J = None
        self.txt = txt

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

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

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