items = ['1', '2', '-10', 'A', '1234567890']
for item in items:
print('{} type: {}'.format(item, type(item)))
int_items = [int(value) for value in items if value.lstrip('-').isdigit()]
print()
for item in int_items:
print('{} type: {}'.format(item, type(item)))
aXRlbXMgPSBbJzEnLCAnMicsICctMTAnLCAnQScsICcxMjM0NTY3ODkwJ10KCmZvciBpdGVtIGluIGl0ZW1zOgogICAgcHJpbnQoJ3t9IHR5cGU6IHt9Jy5mb3JtYXQoaXRlbSwgdHlwZShpdGVtKSkpCgppbnRfaXRlbXMgPSBbaW50KHZhbHVlKSBmb3IgdmFsdWUgaW4gaXRlbXMgaWYgdmFsdWUubHN0cmlwKCctJykuaXNkaWdpdCgpXQpwcmludCgpCgpmb3IgaXRlbSBpbiBpbnRfaXRlbXM6CiAgICBwcmludCgne30gdHlwZToge30nLmZvcm1hdChpdGVtLCB0eXBlKGl0ZW0pKSkK