#!/usr/bin/python3
import random
number = random.randint(-10000, 10000)
ld = (number % 10)
if number < 0:
    ld = -(10 - ld)
if ld > 5:
    print("Last digit of {} is {} and is greater than 5".format(number, ld))
elif ld == 0:
    print("Last digit of {} is 0 and is 0".format(number, ld))
else:
    print("Last digit of {} is {} and is less than 6 and not 0"
          .format(number, ld))
