Design a program in Python that takes 4 numbers as input and prints out the product of the first three numbers.
1, 2, 3, 4
def product(nums):
    product = 1
    for i in range(3):
        product *= nums[i]
    return product

nums = [int(x) for x in input().split(",")]
print(product(nums))