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

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.y: D = None
        self.z: I = None
        self.x: E = None
        self.w: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.y: G = None
        self.q: I = None
        self.s: I = None
        self.x: F = None
        self.w: E = None
        self.o: J = None
        self.t: G = None
        self.z: D = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.t: I = None
        self.q: I = None
        self.s: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.t: C = None
        self.s: I = None
        self.o: F = None
        self.p: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: H = None
        self.r: J = None
        self.v: E = None
        self.z: A = None
        self.txt = txt

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

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

n.r = d
n.v = a
n.z = a
n.u = f
n.y = e
n.p = j
n.x = j
n.s = m
f.o = i
f.y = j
f.z = m
f.x = d
f.w = d
i.u = f
i.y = e
i.t = e
i.q = m
i.s = m
i.x = l
i.w = d
i.o = k
i.z = j
j.p = i
j.w = i
j.z = m
j.o = l
j.q = k
j.x = k
j.u = k
j.s = n
j.y = d
j.t = d
d.y = i
d.t = l
d.r = j
d.p = j
d.q = e
l.o = j
l.t = j
l.u = n
l.s = n
l.y = a
l.v = a
l.x = a
l.r = m
l.z = m
l.p = k
e.t = m
e.q = m
e.s = d
a.v = e
a.t = i
a.s = m
a.o = l
a.p = l
m.x = a
m.r = k
m.v = d
m.z = n
k.u = f
assert a.s.v.t.p.u.w.txt == "
class A:
    def __init__(self, txt: str):
        self.r: E = None
        self.v: H = None
        self.u: B = None
        self.y: G = None
        self.z: H = None
        self.p: D = None
        self.s: I = None
        self.x: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.y: D = None
        self.z: I = None
        self.x: E = None
        self.w: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: B = None
        self.y: G = None
        self.q: I = None
        self.s: I = None
        self.x: F = None
        self.w: E = None
        self.o: J = None
        self.t: G = None
        self.z: D = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.t: I = None
        self.q: I = None
        self.s: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.t: C = None
        self.s: I = None
        self.o: F = None
        self.p: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: H = None
        self.r: J = None
        self.v: E = None
        self.z: A = None
        self.txt = txt

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

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

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