class A:
    def __init__(self, txt: str):
        self.w: C = None
        self.r: J = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: E = None
        self.w: H = None
        self.v: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.r: H = None
        self.t: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: D = None
        self.v: B = None
        self.z: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: B = None
        self.s: H = None
        self.t: C = None
        self.p: E = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: E = None
        self.w: H = None
        self.v: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.r: H = None
        self.t: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: D = None
        self.v: B = None
        self.z: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: B = None
        self.s: H = None
        self.t: C = None
        self.p: E = None
        self.txt = txt

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

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

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