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

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: A = None
        self.w: B = None
        self.z: F = None
        self.u: I = None
        self.s: H = None
        self.o: F = None
        self.p: J = None
        self.x: I = None
        self.t: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.s: C = None
        self.y: B = None
        self.u: E = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: A = None
        self.w: B = None
        self.z: F = None
        self.u: I = None
        self.s: H = None
        self.o: F = None
        self.p: J = None
        self.x: I = None
        self.t: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.s: C = None
        self.y: B = None
        self.u: E = None
        self.txt = txt

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

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