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

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

class C:
    def __init__(self, txt: str):
        self.y: F = None
        self.t: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.z: H = None
        self.q: G = None
        self.v: B = None
        self.s: D = None
        self.t: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.o: C = None
        self.x: A = None
        self.z: G = None
        self.q: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: F = None
        self.t: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.z: H = None
        self.q: G = None
        self.v: B = None
        self.s: D = None
        self.t: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.o: C = None
        self.x: A = None
        self.z: G = None
        self.q: E = None
        self.txt = txt

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

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