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

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.p: F = None
        self.w: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.u: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: H = None
        self.u: G = None
        self.w: H = None
        self.x: B = None
        self.o: J = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.q: J = None
        self.w: B = None
        self.v: E = None
        self.y: C = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.p: F = None
        self.w: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.u: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: H = None
        self.u: G = None
        self.w: H = None
        self.x: B = None
        self.o: J = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.q: J = None
        self.w: B = None
        self.v: E = None
        self.y: C = None
        self.txt = txt

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

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

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

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

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