#!/usr/bin/python3
def safe_print_list(my_list=[], x=0):
    for idx in range(x):
        try:
            print("{:d}".format(my_list[idx]), end="")
        except:
            print()
            return idx
    print()
    return x
