class A:
    def __init__(self, txt: str):
        self.p: B = None
        self.t: H = None
        self.z: J = None
        self.s: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: E = None
        self.z: D = None
        self.s: F = None
        self.t: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: G = None
        self.w: B = None
        self.v: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: E = None
        self.r: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.p: A = None
        self.o: E = None
        self.z: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.u: B = None
        self.w: I = None
        self.v: D = None
        self.y: C = None
        self.o: D = None
        self.z: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: H = None
        self.o: G = None
        self.r: C = None
        self.z: G = None
        self.p: D = None
        self.x: J = None
        self.w: E = None
        self.s: D = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: E = None
        self.z: D = None
        self.s: F = None
        self.t: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: G = None
        self.w: B = None
        self.v: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: E = None
        self.r: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.p: A = None
        self.o: E = None
        self.z: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.u: B = None
        self.w: I = None
        self.v: D = None
        self.y: C = None
        self.o: D = None
        self.z: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: H = None
        self.o: G = None
        self.r: C = None
        self.z: G = None
        self.p: D = None
        self.x: J = None
        self.w: E = None
        self.s: D = None
        self.txt = txt

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

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

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