def main():
    A = int(input())
    B = int(input())
    # Print seven lines as described above
    print(A+B)
    print(A-B)
    print(A*B)
    print(A//B)
    print(A/B)
    print(A%B)
    print(A**B)
    return 0

if __name__ == '__main__':
    main()