class A:
    def __init__(self, txt: str):
        self.p: F = None
        self.o: F = None
        self.x: H = None
        self.u: I = None
        self.v: I = None
        self.r: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: C = None
        self.v: H = None
        self.y: F = None
        self.s: D = None
        self.t: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.z: A = None
        self.s: C = None
        self.x: E = None
        self.o: G = None
        self.t: J = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.p: I = None
        self.y: H = None
        self.o: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: G = None
        self.y: F = None
        self.t: B = None
        self.s: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: C = None
        self.y: H = None
        self.o: A = None
        self.p: H = None
        self.r: E = None
        self.z: G = None
        self.u: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: A = None
        self.u: I = None
        self.v: F = None
        self.s: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: C = None
        self.v: H = None
        self.y: F = None
        self.s: D = None
        self.t: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.z: A = None
        self.s: C = None
        self.x: E = None
        self.o: G = None
        self.t: J = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.p: I = None
        self.y: H = None
        self.o: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: G = None
        self.y: F = None
        self.t: B = None
        self.s: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: C = None
        self.y: H = None
        self.o: A = None
        self.p: H = None
        self.r: E = None
        self.z: G = None
        self.u: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: A = None
        self.u: I = None
        self.v: F = None
        self.s: G = None
        self.txt = txt

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

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