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

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.y: A = None
        self.r: F = None
        self.w: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: D = None
        self.v: G = None
        self.o: A = None
        self.r: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.y: I = None
        self.x: B = None
        self.s: H = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.r: D = None
        self.q: G = None
        self.t: F = None
        self.p: D = None
        self.x: D = None
        self.y: A = None
        self.w: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.y: A = None
        self.r: F = None
        self.w: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: D = None
        self.v: G = None
        self.o: A = None
        self.r: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.y: I = None
        self.x: B = None
        self.s: H = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.r: D = None
        self.q: G = None
        self.t: F = None
        self.p: D = None
        self.x: D = None
        self.y: A = None
        self.w: G = None
        self.txt = txt

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

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