class A:
    def __init__(self, txt: str):
        self.p: E = None
        self.x: H = None
        self.y: G = None
        self.w: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: B = None
        self.s: B = None
        self.v: A = None
        self.r: G = None
        self.u: G = None
        self.p: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: H = None
        self.u: A = None
        self.x: C = None
        self.z: G = None
        self.q: B = None
        self.y: C = None
        self.t: B = None
        self.p: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: I = None
        self.q: C = None
        self.x: J = None
        self.p: D = None
        self.r: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.w: H = None
        self.y: E = None
        self.t: J = None
        self.o: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: B = None
        self.q: D = None
        self.t: D = None
        self.x: J = None
        self.v: C = None
        self.p: E = None
        self.y: J = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.t: D = None
        self.r: H = None
        self.z: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: B = None
        self.s: B = None
        self.v: A = None
        self.r: G = None
        self.u: G = None
        self.p: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: H = None
        self.u: A = None
        self.x: C = None
        self.z: G = None
        self.q: B = None
        self.y: C = None
        self.t: B = None
        self.p: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: I = None
        self.q: C = None
        self.x: J = None
        self.p: D = None
        self.r: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.w: H = None
        self.y: E = None
        self.t: J = None
        self.o: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: B = None
        self.q: D = None
        self.t: D = None
        self.x: J = None
        self.v: C = None
        self.p: E = None
        self.y: J = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.t: D = None
        self.r: H = None
        self.z: E = None
        self.txt = txt

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

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