def main():

    a, b = list(map(int, input().split()))

    print((a * b, 2 * (a + b)))



if __name__ == "__main__":

    main()
a,b=list(map(int,input().split()))

print((a*b, (a+b)*2))

def main():
    a, b = list(map(int, input().split()))
    print((a * b, 2 * (a + b)))


if __name__ == "__main__":
    main()

a, b = list(map(int, input().split()))
print((a * b, (a + b) * 2))

-def main(): -    a, b = list(map(int, input().split())) -    print((a * b, 2 * (a + b))) - - -if __name__ == "__main__": -    main() +a, b = list(map(int, input().split())) +print((a * b, (a + b) * 2))