class A:
    def __init__(self, txt: str):
        self.v: F = None
        self.z: J = None
        self.x: F = None
        self.u: F = None
        self.t: G = None
        self.q: B = None
        self.r: B = None
        self.s: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.q: E = None
        self.p: G = None
        self.t: G = None
        self.y: E = None
        self.x: A = None
        self.s: D = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.q: B = None
        self.y: B = None
        self.s: B = None
        self.r: F = None
        self.p: C = None
        self.v: I = None
        self.u: C = None
        self.z: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.q: C = None
        self.z: E = None
        self.s: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: D = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.q: E = None
        self.p: G = None
        self.t: G = None
        self.y: E = None
        self.x: A = None
        self.s: D = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.q: B = None
        self.y: B = None
        self.s: B = None
        self.r: F = None
        self.p: C = None
        self.v: I = None
        self.u: C = None
        self.z: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: F = None
        self.q: C = None
        self.z: E = None
        self.s: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: D = None
        self.txt = txt

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

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

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