input/output, simple calculation