#!/usr/bin/python3
def safe_print_list_integers(my_list=[], x=0):
    ojo = 0
    for elements in range(x):
        try:
            print("{:d}".format(my_list[elements]), end="")
            ojo += 1
        except (ValueError, TypeError):
            pass
    print()
    return ojo
