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

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.q: C = None
        self.p: F = None
        self.t: I = None
        self.x: C = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.p: D = None
        self.t: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: F = None
        self.r: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: F = None
        self.t: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: H = None
        self.x: D = None
        self.y: F = None
        self.z: I = None
        self.q: D = None
        self.t: C = None
        self.s: D = None
        self.p: B = None
        self.r: D = None
        self.o: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.q: C = None
        self.p: F = None
        self.t: I = None
        self.x: C = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.p: D = None
        self.t: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: F = None
        self.r: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: F = None
        self.t: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: H = None
        self.x: D = None
        self.y: F = None
        self.z: I = None
        self.q: D = None
        self.t: C = None
        self.s: D = None
        self.p: B = None
        self.r: D = None
        self.o: D = None
        self.txt = txt

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

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