a, b = int(input('Сторона a:')), int(input('Сторона b:')) print(f'S = {a*b}\nP = {2*(a+b)}')