# -*- coding: utf-8-*-
__author__ = 'manman'


def total(initial=5, *numbers, **keywords):
    count = initial
    for number in numbers:
        count += number
    for key in keywords:
        count += keywords[key]
    return count


print(total(10, 1, 2, 3, vegetables=50, fruits=100))


def add(a, b, c):
    if a == 1:
        return a + b + c
    else:
        return a * b * c


print add(2, 2, 4)
