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

class B:
    def __init__(self, txt: str):
        self.s: H = None
        self.u: J = None
        self.v: E = None
        self.o: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.o: F = None
        self.r: A = None
        self.q: A = None
        self.z: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: H = None
        self.w: G = None
        self.x: C = None
        self.v: G = None
        self.u: B = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.v: E = None
        self.u: I = None
        self.p: C = None
        self.q: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: H = None
        self.u: J = None
        self.v: E = None
        self.o: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.o: F = None
        self.r: A = None
        self.q: A = None
        self.z: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: H = None
        self.w: G = None
        self.x: C = None
        self.v: G = None
        self.u: B = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.v: E = None
        self.u: I = None
        self.p: C = None
        self.q: H = None
        self.txt = txt

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

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