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

class B:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.z: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: B = None
        self.z: B = None
        self.s: J = None
        self.p: E = None
        self.w: B = None
        self.r: I = None
        self.t: D = None
        self.u: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: B = None
        self.y: G = None
        self.z: B = None
        self.v: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.t: F = None
        self.p: D = None
        self.o: A = None
        self.w: G = None
        self.z: I = None
        self.q: D = None
        self.u: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.z: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: B = None
        self.z: B = None
        self.s: J = None
        self.p: E = None
        self.w: B = None
        self.r: I = None
        self.t: D = None
        self.u: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: B = None
        self.y: G = None
        self.z: B = None
        self.v: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.t: F = None
        self.p: D = None
        self.o: A = None
        self.w: G = None
        self.z: I = None
        self.q: D = None
        self.u: H = None
        self.txt = txt

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

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