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

class B:
    def __init__(self, txt: str):
        self.v: C = None
        self.q: A = None
        self.s: H = None
        self.r: J = None
        self.o: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: D = None
        self.s: I = None
        self.z: D = None
        self.r: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: A = None
        self.s: D = None
        self.t: I = None
        self.y: C = None
        self.z: D = None
        self.o: A = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.v: C = None
        self.q: A = None
        self.s: H = None
        self.r: J = None
        self.o: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.v: D = None
        self.s: I = None
        self.z: D = None
        self.r: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: A = None
        self.s: D = None
        self.t: I = None
        self.y: C = None
        self.z: D = None
        self.o: A = None
        self.txt = txt

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

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

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

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