#!/usr/bin/env python3

# -*- coding:utf-8 -*-
# @Script: solution.py
# @Author: Pradip Patil
# @Contact: @pradip__patil
# @Created: 2018-02-10 21:18:08
# @Last Modified By: Pradip Patil
# @Last Modified: 2018-02-10 21:21:21
# @Description: https://www.hackerrank.com/challenges/python-arithmetic-operators/problem

if __name__ == '__main__':
    a = int(input())
    b = int(input())

    print("{}\n{}\n{}".format(a + b, a - b, a * b))
