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

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

class C:
    def __init__(self, txt: str):
        self.t: I = None
        self.y: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: A = None
        self.o: C = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.v: F = None
        self.p: J = None
        self.t: F = None
        self.s: I = None
        self.q: D = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.t: H = None
        self.x: F = None
        self.u: I = None
        self.r: D = None
        self.s: C = None
        self.v: H = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: I = None
        self.y: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: A = None
        self.o: C = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.v: F = None
        self.p: J = None
        self.t: F = None
        self.s: I = None
        self.q: D = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.t: H = None
        self.x: F = None
        self.u: I = None
        self.r: D = None
        self.s: C = None
        self.v: H = None
        self.txt = txt

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

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