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

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

class C:
    def __init__(self, txt: str):
        self.t: B = None
        self.v: E = None
        self.txt = txt

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.v: D = None
        self.w: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: E = None
        self.x: H = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: B = None
        self.v: E = None
        self.txt = txt

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.v: D = None
        self.w: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: E = None
        self.x: H = None
        self.txt = txt

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

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