tiempoActividadA = int(input('Digite el tiempo de actividad A'))
tiempoActividadB = int(input('Digite el tiempo de actividad B'))
tiempoActividadC = int(input('Digite el tiempo de actividad C'))
tiempoTotal = 0
if tiempoActividadA < 0 or tiempoActividadB < 0 or tiempoActividadC < 0:
print('Los tiempos de actividad no pueden ser negativos')
else:
tiempoTotal = tiempoActividadA + tiempoActividadB + tiempoActividadC
print('El tiempo total de actividad es {}'.format(tiempoTotal))