class A:
    def __init__(self, txt: str):
        self.v: G = None
        self.r: D = None
        self.z: I = None
        self.s: J = None
        self.x: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: F = None
        self.w: E = None
        self.y: I = None
        self.q: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: F = None
        self.y: D = None
        self.s: J = None
        self.u: D = None
        self.w: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: I = None
        self.s: F = None
        self.v: C = None
        self.t: I = None
        self.w: G = None
        self.o: A = None
        self.y: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.v: H = None
        self.q: I = None
        self.t: D = None
        self.z: I = None
        self.u: A = None
        self.p: F = None
        self.w: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: E = None
        self.r: D = None
        self.s: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: B = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: F = None
        self.w: E = None
        self.y: I = None
        self.q: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: F = None
        self.y: D = None
        self.s: J = None
        self.u: D = None
        self.w: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: I = None
        self.s: F = None
        self.v: C = None
        self.t: I = None
        self.w: G = None
        self.o: A = None
        self.y: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.v: H = None
        self.q: I = None
        self.t: D = None
        self.z: I = None
        self.u: A = None
        self.p: F = None
        self.w: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: E = None
        self.r: D = None
        self.s: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: B = None
        self.txt = txt

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

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

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