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

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

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

class D:
    def __init__(self, txt: str):
        self.y: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.w: H = None
        self.t: H = None
        self.y: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: B = None
        self.w: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.w: H = None
        self.t: H = None
        self.y: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: B = None
        self.w: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

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

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

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