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

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.z: C = None
        self.s: E = None
        self.w: J = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.r: C = None
        self.w: E = None
        self.y: A = None
        self.v: G = None
        self.u: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: H = None
        self.q: G = None
        self.r: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.v: B = None
        self.s: I = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: D = None
        self.z: C = None
        self.s: E = None
        self.w: J = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.r: C = None
        self.w: E = None
        self.y: A = None
        self.v: G = None
        self.u: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: H = None
        self.q: G = None
        self.r: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.v: B = None
        self.s: I = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

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

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