class A:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: G = None
        self.p: J = None
        self.r: H = None
        self.o: B = None
        self.u: J = None
        self.w: J = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: F = None
        self.t: I = None
        self.y: J = None
        self.q: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.o: B = None
        self.x: J = None
        self.w: F = None
        self.r: J = None
        self.s: A = None
        self.y: B = None
        self.v: I = None
        self.p: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: B = None
        self.r: C = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: F = None
        self.t: I = None
        self.y: J = None
        self.q: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.o: B = None
        self.x: J = None
        self.w: F = None
        self.r: J = None
        self.s: A = None
        self.y: B = None
        self.v: I = None
        self.p: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: B = None
        self.r: C = None
        self.txt = txt

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

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

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