class A:
    def __init__(self, txt: str):
        self.z: E = None
        self.x: H = None
        self.u: D = None
        self.v: G = None
        self.s: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.v: J = None
        self.o: A = None
        self.u: B = None
        self.x: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.y: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.u: H = None
        self.s: A = None
        self.x: A = None
        self.o: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: D = None
        self.v: J = None
        self.o: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: H = None
        self.p: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: A = None
        self.s: G = None
        self.x: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.v: J = None
        self.o: A = None
        self.u: B = None
        self.x: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.y: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.u: H = None
        self.s: A = None
        self.x: A = None
        self.o: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: D = None
        self.v: J = None
        self.o: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.w: H = None
        self.p: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: A = None
        self.s: G = None
        self.x: C = None
        self.txt = txt

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

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