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

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.q: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.w: D = None
        self.r: D = None
        self.v: J = None
        self.x: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: I = None
        self.r: H = None
        self.q: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: E = None
        self.v: F = None
        self.w: D = None
        self.z: D = None
        self.y: B = None
        self.p: F = None
        self.u: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: G = None
        self.v: A = None
        self.w: J = None
        self.s: F = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.q: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.w: D = None
        self.r: D = None
        self.v: J = None
        self.x: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: I = None
        self.r: H = None
        self.q: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: E = None
        self.v: F = None
        self.w: D = None
        self.z: D = None
        self.y: B = None
        self.p: F = None
        self.u: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: G = None
        self.v: A = None
        self.w: J = None
        self.s: F = None
        self.txt = txt

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

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

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