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

class B:
    def __init__(self, txt: str):
        self.w: I = None
        self.r: E = None
        self.z: G = None
        self.y: I = None
        self.q: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.z: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.v: C = None
        self.r: A = None
        self.s: G = None
        self.y: H = None
        self.z: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: A = None
        self.p: E = None
        self.o: A = None
        self.y: G = None
        self.v: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: I = None
        self.r: E = None
        self.z: G = None
        self.y: I = None
        self.q: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: E = None
        self.z: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.v: C = None
        self.r: A = None
        self.s: G = None
        self.y: H = None
        self.z: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: A = None
        self.p: E = None
        self.o: A = None
        self.y: G = None
        self.v: C = None
        self.txt = txt

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

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