Write a Python program to convert a list of numbers into a single number by subtracting the sum of all numbers in the list from the first element.
list1 = [5, 3, 2, 1]
def list_to_number(list1):
    result = list1[0]
    for i in range(1, len(list1)):
        result -= list1[i]
    return result