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

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

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

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.w: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

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

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

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.w: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

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

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

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

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

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

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