#include <cstdio> int main () { int n, m; scanf("%d%d", &n, &m); printf("%d\n%d\n%d\n%d\n", n+m, n-m, n*m, n/m); }