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

class B:
    def __init__(self, txt: str):
        self.z: F = None
        self.s: H = None
        self.o: G = None
        self.v: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: A = None
        self.r: F = None
        self.z: D = None
        self.s: I = None
        self.y: A = None
        self.q: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.t: C = None
        self.z: I = None
        self.y: G = None
        self.o: D = None
        self.r: C = None
        self.txt = txt

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

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: F = None
        self.s: H = None
        self.o: G = None
        self.v: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: A = None
        self.r: F = None
        self.z: D = None
        self.s: I = None
        self.y: A = None
        self.q: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.t: C = None
        self.z: I = None
        self.y: G = None
        self.o: D = None
        self.r: C = None
        self.txt = txt

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

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

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

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

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

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

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