Problem:
 ﻿Score: 100 points    Problem Statement  There is a farm whose length and width are A yard and B yard, respectively. A farmer, John, made a vertical road and a horizontal road inside the farm from one border to another, as shown below: (The gray part represents the roads.)   What is the area of this yard excluding the roads? Find it.      Note  It can be proved that the positions of the roads do not affect the area.      Constraints   A is an integer between 2 and 100 (inclusive).  B is an integer between 2 and 100 (inclusive).         Input  Input is given from Standard Input in the following format:  A  B       Output  Print the area of this yard excluding the roads (in square yards).        Sample Input 1 2 2      Sample Output 1 1  In this case, the area is 1 square yard.       Sample Input 2 5 7      Sample Output 2 24  In this case, the area is 24 square yards.

Solution (Python):
w, h = map(int, input().split())
print((w - 1) * (h - 1))

Solution (Python):
A,B=map(int,input().split())
print((A-1)*(B-1))

Solution (Python):
A,B = map(int,input().split())

answer = (A - 1) * (B - 1)

print(answer)

Solution (Python):
a,b = map(int,input().split())
print((a-1)*(b-1))

Solution (Python):

A, B = map(int, input().split())

ans = (A - 1) * (B - 1)
print(ans)

Solution (Python):
a,b=input().split()
print((int(a)-1)*(int(b)-1))

Solution (Python):
import sys
read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines

def main():
    A,B = map(int, readline().split())

    print((A-1) * (B-1))


if __name__ == "__main__":
    main()

Solution (Python):
A, B = map(int,input().split())
print((A-1)*(B-1))

Solution (Python):
a,b=map(int,input().split())
print(a*b+1-a-b)

Solution (Python):
a,b=map(int,input().split())
print(a*b-(a+b-1))

Solution (Python):
A, B = map(int, input().split())
print(A*B-A-B+1)

Solution (Python):



A, B = list(map(int, input().split()))


def main():
    ans = (A - 1) * (B - 1)
    print(ans)


if __name__ == "__main__":
    main()

Solution (Python):
A,B = map(int,input().split())

ans = (A-1)*(B-1)
print(ans)

Solution (Python):
A,B = map(int,input().split())

print((A-1)*(B-1))

Solution (Python):
a, b = map(int, input().split())
print(a * b - b - a + 1)

Solution (Python):
a, b = map(int, input().split())
print((a-1)*(b-1))

Solution (Python):
a,b=map(int,input().split())

print((a-1)*(b-1))

Solution (Python):
A,B = map(int,input().split())
print((A-1)*(B-1))

Solution (Python):
x,y = map(int, input().split())
print((x-1)*(y-1))

Solution (Python):
A, B = map(int, input().split())
print((A-1)*(B-1))

Solution (Python):
a,b = map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
A, B = map(int, input().split())
print(A*B-A-B+1)

Solution (Python):
A,B=map(int,input().split());print(~-A*~-B)

Solution (Python):
A,B=map(int,input().split())
print((int(A)-1)*(int(B)-1))

Solution (Python):
a, b = map(int, input().split())
print((a-1)*(b-1))

Solution (Python):
a,b=map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
A,B = map(int,input().split())
A-=1
B-=1
print(A*B)

Solution (Python):
A, B = map(int, input().split())
print((A - 1) * (B - 1))

Solution (Python):
a,b = map(int,input().split())
print((a-1)*(b-1))

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

print((a-1)*(b-1))

Solution (Python):
A,B = map(int,input().split(" "))
print((A - 1) * (B - 1))

Solution (Python):
A, B = map(int, input().split())
print(A * B - A - B + 1)

Solution (Python):
a, b = map(int, input().split())
area = a*b
road = a + b -1
net = area - road
print(net)

Solution (Python):
a,b=map(int, input().split())
print((a-1)*(b-1))

Solution (Python):
a,b=map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
a, b = map(int, input().split())
print((a - 1) * (b - 1))

Solution (Python):
a,b=map(int,input().split())
print(a*b-(a+b-1))

Solution (Python):
import sys
def input(): return sys.stdin.readline().rstrip()

def main():
    A, B = map(int, input().split())
    print(A * B - A - B + 1)

if __name__ == '__main__':
    main()

Solution (Python):
a,b=map(int,input().split())

print((a-1)*(b-1))

Solution (Python):
A,B=map(int,input().split())
print((A-1)*(B-1))

Solution (Python):
A,B = map(int,input().split())

print((A-1)*(B-1))

Solution (Python):
a, b = [int(elem) for elem in input().split()]
print((a-1) * (b-1))

Solution (Python):
A, B = map(int, input().split())
print(A*B-(A+B-1))

Solution (Python):
a,b = map(int, input().split())
print((a-1)*(b-1))

Solution (Python):
A, B = map(int, input().split())
print((A-1) * (B-1))

Solution (Python):
def main():
    a, b = map(int, input().split())
    ans = a*b - a - b + 1
    print(ans)


if __name__ == "__main__":
    main()

Solution (Python):
a,b = map(int,input().split())
print((a-1) * (b-1) )

Solution (Python):
A, B = map(int, input().split())

print(A*B-A-B+1)

Solution (Python):
a,b = map(int, input().split())
print((a-1)*(b-1))

Solution (Python):
a,b = map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
a,b = map(int, input().split())
print((a-1)*(b-1))

Solution (Python):
a, b = map(int, input().split())

print((a - 1) * (b - 1))

Solution (Python):
a, b = map(int, input().split())
print(a*b - b - a + 1)

Solution (Python):

a,b=map(int,input().split())
print((a-1)*(b-1))

Solution (Python):

a , b = map(int , input().split())
print(a * b - (a + b - 1))

Solution (Python):
A,B = map(int,input().split())
print((A-1)*(B-1))

Solution (Python):
A,B = map(int, input().split())

print(max(0, A*B - A - B + 1))

Solution (Python):
A,B = input().split()
A = int(A)
B = int (B)
print((A-1)*(B-1))

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

print((a-1)*(b-1))

Solution (Python):
def main():
    a,b = map(int,input().split())
    print(a*b - (a+b) + 1)

if __name__ == '__main__':
    main()

Solution (Python):
a, b = map(int,input().split())
print((a-1)*(b-1))

Solution (Python):

a,b=map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
a, b = list(map(int, input().split()))
print((a-1) * (b-1))

Solution (Python):
A,B=map(int,input().split())

print(A*B-(A+B-1))

Solution (Python):
a,b = map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
a,b=map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
a,b=map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
x = input()
y = x.split(" ")
A = int(y[0])
B = int(y[1])
total = A * B
roads = A + B - 1
rem = total - roads
rem = int(rem)
print(rem)

Solution (Python):
a,b=map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
a,b = map(int,input().split())
print((a-1)*(b-1))

Solution (Python):

import sys
sys.setrecursionlimit(10**9)
INF=10**18
MOD=10**9+7
def input(): return sys.stdin.readline().rstrip()

def main():
    A,B=map(int,input().split())
    print(A*B-A-+B+1)

if __name__ == '__main__':
    main()

Solution (Python):
x,y=list(map(int, input().split()))
print((x-1)*(y-1))

Solution (Python):
a,b = map(int,input().split())
print(a*b-a-b+1)

Solution (Python):
A, B = map(int, input().split())
print((A - 1) * (B - 1))

Solution (Python):
a, b = map(int, input().split())
print((a-1)*(b-1))

Solution (Python):
a, b = map(int, input().split())
print(a * b - a - b + 1)

Solution (Python):
import sys
import os


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

    A, B = list(map(int, sys.stdin.readline().split()))
    print(A*B-(A+B-1))


if __name__ == '__main__':
    main()

Solution (Python):
a,b = map(int, input().split())
print(a*b-a-b+1)

Solution (Python):
a, b = map(int,input().split())
s = (a-1)*(b-1)
print(s)

Solution (Python):


import sys
 
stdin = sys.stdin
inf = 1 << 60
mod = 1000000007
 
ni = lambda: int(ns())
nin = lambda y: [ni() for _ in range(y)]
na = lambda: list(map(int, stdin.readline().split()))
nan = lambda y: [na() for _ in range(y)]
nf = lambda: float(ns())
nfn = lambda y: [nf() for _ in range(y)]
nfa = lambda: list(map(float, stdin.readline().split()))
nfan = lambda y: [nfa() for _ in range(y)]
ns = lambda: stdin.readline().rstrip()
nsn = lambda y: [ns() for _ in range(y)]
ncl = lambda y: [list(ns()) for _ in range(y)]
nas = lambda: stdin.readline().split()

A, B = na()

print(A * B - (A + B - 1))

Solution (Python):
A,B= map(int, input().split())
print((A-1)*(B-1))

Solution (Python):

a,b=list(map(int,input().split()))
print((a-1)*(b-1))

Solution (Python):
a,b = map(int,input().split())
print((a-1)*(b-1))

Solution (Python):









import sys



ipti = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)

def main():
    a, b = list(map(int,ipti().split()))
    print((a-1)*(b-1))

if __name__ == '__main__':
    main()

Solution (Python):
A,B = map(int,input().split())
print(A*B - A -B +1)

Solution (Python):
a,b=map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
a,b=map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
A,B=map(int,input().split())
print((A-1)*(B-1))

Solution (Python):
A,B=map(int,input().split(' '))
print((A-1)*(B-1))

Solution (Python):
X, Y = list(map(int, input().split()))
ans = X * Y - (X + Y - 1)
print(ans)

Solution (Python):
a,b = map(int,input().split())
ans = (a-1)*(b-1)
print(ans)

Solution (Python):
a,b=map(int,input().split())
print(a*b-a-b+1)

Solution (Python):
a,b = map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
a,b=map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
a,b=map(int,input().split())
print(a*b-(1*a+1*b-1))

Solution (Python):
a, b = map(int, input().split())
print((a - 1) * (b - 1))

Solution (Python):
a,b=map(int,input().split())
print(a*b-a-b+1)

Solution (Python):
A, B = map(int, input().split())
print((A-1)*(B-1))

Solution (Python):
a, b = map(int, input().split())
print((a-1)*(b-1))

Solution (Python):
import itertools as it
import collections as col
a,b=map(int,input().split())
print((a*b)-(a+b)+1)

Solution (Python):
a, b = map(int, input().split())
a -= 1
b -= 1
print(a*b)

Solution (Python):
n,m=map(int,input().split())
print((n-1)*(m-1))

Solution (Python):
a,b = map(int,input().split())

print((a-1)*(b-1))

Solution (Python):
a, b = [int(i) for i in input().split()]

print((a-1) * (b-1))

Solution (Python):
a, b = map(int, input().split())
print((a - 1) * (b - 1))

Solution (Python):
a, b = map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
A,B=map(int,input().split())
print((A-1)*(B-1))

Solution (Python):
x,y = map(int,input().split())

print(x*y-x-y+1)

Solution (Python):
a, b = map(int, input().split())

print((a-1) * (b-1))

Solution (Python):
a, b = map(int, input().split())
print((a-1) * (b-1))

Solution (Python):
tmp=input()
a=int(tmp.split()[0])
b=int(tmp.split()[1])
print((a-1)*(b-1))

Solution (Python):
a, b = map(int, input().split())

print(a * b - (a + b) + 1 )

Solution (Python):
a,b = map(int, input().split())
print(a*b-a-b+1)

Solution (Python):
a,b=map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
a,b=map(int,input().split())
print(a*b-b-a+1)

Solution (Python):
a,b = map(int,input().split())

print((a-1)*(b-1))

Solution (Python):
a, b = map(int, input().split())
print((a - 1)*(b - 1))

Solution (Python):
def main():
    a, b = map(int, input().split())
    
    print(a*b-a-b+1)

if __name__ == '__main__':
    main()

Solution (Python):
a, b = map(int, input().split())
print(a*b-a-b+1)

Solution (Python):
a,b = [int(x) for x in input().split()]

print((a*b) - (a+b-1))

Solution (Python):
A, B = map(int, input().split())
area = A * B
print(area - A - B + 1)

Solution (Python):



A,B = list(map(int, input().rstrip().split()))


print((A-1)*(B-1))

Solution (Python):
a, b = map(int, input().split())

print(a*b-a-b+1)

Solution (Python):
A, B = map(int, input().split())
print((A-1)*(B-1))

Solution (Python):
A,B = map(int, input().split())
print(A*B - (A + B) + 1)

Solution (Python):
A,B=map(int,input().split())
print((A-1)*(B-1))

Solution (Python):
a, b = map(int, input().split())
print((a-1)*(b-1))

Solution (Python):
a,b=map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
a,b =map(int, input().split())
print((a-1)*(b-1))

Solution (Python):
a, b = map(int, input().split())
print((a-1)*(b-1))

Solution (Python):
A, B = [int(x) for x in input().split()]
print(A * B - A - B + 1)

Solution (Python):
A,B=map(int,input().split())
print((A-1)*(B-1))

Solution (Python):
a = input()
b = a.split(" ")
b = [int(x) for x in b]

x = b[0]
y = b[1]

tA = x * y
rA = x + y - 1

ans = tA - rA
print(ans)

Solution (Python):
a,b = list(map(int, input().split()))
print((a-1)*(b-1))

Solution (Python):
def main():
    a,b = map(int,input().split())

    print((a-1)*(b-1))
if __name__=='__main__':
    main()

Solution (Python):
A,B = map(int,input().split())
print((A-1)*(B-1))

Solution (Python):
a,b=map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
a,b=map(int,input().split())
print(a*b-(a+b-1))

Solution (Python):
A, B = map(int, input().split())

print((int(A) - 1) * (int(B) - 1))

Solution (Python):
a,b=map(int,input().split())
ans=(a-1)*(b-1)
print(ans)

Solution (Python):

A,B=map(int,input().split())
print((A-1)*(B-1))

Solution (Python):
a,b=map(int,input().split())
print(a*b-a-b+1)

Solution (Python):
A, B = map(int, input().split())

print((A - 1) * (B - 1))

Solution (Python):
a,b = map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
A, B = [int(i)-1 for i in input().split()]
print(A*B)

Solution (Python):
a, b = map(int, input().split())
print((a-1) * (b-1))

Solution (Python):
A, B = map(int, input().split())

print((A - 1) * (B - 1))

Solution (Python):
a,b=map(int, input().split())
c=a+b-1
print(a*b-c)

Solution (Python):
A,B=map(int,raw_input().split())
print (A-1)*(B-1)

Solution (Python):
A, B = map(int, raw_input().split())
area = (A-1)*(B-1)
print area

Solution (Python):
A,B = map(int,input().split())
print(A*B-A-B+1)

Solution (Python):
A,B=map(int,input().split())
print(A*B-A-B+1)

Solution (Python):
a,b=map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
a,b = map(int ,input().split())
print((a-1)*(b-1))

Solution (Python):
a, b = map(int, input().split())
print((a-1) * (b-1))

Solution (Python):
a,b = map(int,input().split())
print(a*b-(a+b-1))

Solution (Python):
a,b=map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
a,b = map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
a, b = [int(i) for i in input().split()]
print((a-1)*(b-1))

Solution (Python):
A, B = map(int,input().split())
print(A * B - A - B + 1 )

Solution (Python):
a, b = map(int, input().split())

print(a*b-a-b+1)

Solution (Python):
a, b = map(int, input().split())
print(a*b-a-b+1)

Solution (Python):
a,b = map(int, input().split())
print((a-1)*(b-1))

Solution (Python):
A,B=map(int,input().split())
print((A-1)*(B-1))

Solution (Python):
A, B = map(int, input().split())
print((A-1)*(B-1))

Solution (Python):
A,B=map(int,input().split())
print(A*B-A-B+1)

Solution (Python):
a,b = map(int, input().split())
print((a-1)*(b-1))

Solution (Python):
A,B=map(int,input().split())
print(A*B-(A+B)+1)

Solution (Python):
A,B = map(int,input().split())
print((A-1)*(B-1))

Solution (Python):
a,b = map(int, input().split())
print(a*b - a - b + 1)

Solution (Python):
A,B=map(int,input().split())
print((A-1)*(B-1))

Solution (Python):
A, B = map(int, input().split())
print((A - 1) * (B - 1))

Solution (Python):
a,b=map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
a,b=map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
a,b = map(int,input().split())
print((a-1) * (b-1))

Solution (Python):
def main():
    height, width = map(int, input().split(" "))
    print((height - 1) * (width - 1))


if __name__ == '__main__':
    main()

Solution (Python):
a,b = map(int,input().split())

print((a-1)*(b-1))

Solution (Python):
x,y=map(int,input().split())
print((x-1)*(y-1))

Solution (Python):
n, m = map(int, input().split(' '))
print(n*m-n-m+1)

Solution (Python):
a, b = map(int, input().split())

print(a * b - a - b + 1)

Solution (Python):
A, B = map(int, input().split())

print((A-1) * (B-1))

Solution (Python):
A, B = map(int,input().split())
print(A * B - A - B + 1)

Solution (Python):
A, B = map(int, input().split())
print((A - 1) * (B - 1))

Solution (Python):




def main():
    A, B = map(int, input().split())
    print((A - 1) * (B - 1))


if __name__ == "__main__":
    main()

Solution (Python):
A,B=map(int,input().split())
print((A-1)*(B-1))

Solution (Python):
A, B = list(map(int, input().split()))
print(A*B-A-B+1)

Solution (Python):
a, b = map(int, input().split())
print((a-1)*(b-1))

Solution (Python):
a, b = map(int, input().split())
print((a - 1) * (b - 1))

Solution (Python):
a, b = map(int, input().split())
print(a * b - (a + b - 1))

Solution (Python):
a,b = map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
a, b = map(int, input().split())

print((a-1)*(b-1))

Solution (Python):
a,b=map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
A,B = map(int,input().split())
print((A-1)*(B-1))

Solution (Python):
A, B = map(int, input().split())

print(A * B - A - B + 1)

Solution (Python):
a,b = map(int,input().split())
print(a*b-(a+b-1))

Solution (Python):
A, B = [int(i) for i in input().split()]

output = (A * B) - A - B + 1
print(output)

Solution (Python):
a,b=map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
a, b = map(int, input().split())

print((a-1)*(b-1))

Solution (Python):
a, b=map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
a, b = map(int, input().split())
print(a * b - (a+b-1))

Solution (Python):
A, B = map(int,input().split())
a = A - 1
b = B - 1
s = a*b
print(s)

Solution (Python):
a, b = map(int, input().split())

print((a-1)*(b-1))

Solution (Python):
a,b = map(int, input().split())
print((a-1)*(b-1))

Solution (Python):
a, b = map(int, input().split())
print((a-1) * (b-1))

Solution (Python):
a, b = map(int, input().split())
print((a - 1) * (b - 1))

Solution (Python):
a,b = map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
a,b=map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
A,B=map(int,input().split())

print((A-1)*(B-1))

Solution (Python):
a,b = map(int, input().split())
print((a-1) * (b-1))

Solution (Python):
a, b = map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
a,b=map(int,input().split())
print(a*b-a-b+1)

Solution (Python):

import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
a,b = map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
A, B = map(int, input().split())

S = (A - 1) * (B - 1)
print(S)

Solution (Python):
row, col = map(int, input().split())
print((row-1)*(col-1))

Solution (Python):
"""
author : halo2halo
date : 23, Jan, 2020
"""

import sys



read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

N, i = map(int, readline().split())
print((N-1)*(i - 1))

Solution (Python):
a,b=map(int,input().split())
print(a*b-a-b+1)

Solution (Python):
A , B = map(int,input().split())

print((A -1) * (B - 1))

Solution (Python):
a,b=map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
A,B = list(map(int,input().split()))
print((A-1)*(B-1))

Solution (Python):
a,b = map(int, input().split())
print(a*b - (a+b) + 1)

Solution (Python):
A, B = [int(i) for i in input().split()]
print((A - 1) * (B - 1))

Solution (Python):
a,b=map(int,input().split())
print(a*b-a-b+1)

Solution (Python):
a,b = map(int,input().split())

ans = (a*b)-(a+b-1)
print(ans)

Solution (Python):
A,B=map(int,input().split())
print((A-1)*(B-1))

Solution (Python):
a,b= map(int, input().split())
print(a*b - a - b +1)

Solution (Python):
A, B = map(int, input().split())

ans = A * B - A - B + 1

print(ans)

Solution (Python):
S, T = map(int, input().split())
print(~-S*~-T)

Solution (Python):
S, T = map(int, input().split())
print(~-S*~-T)

Solution (Python):
S, T = map(int, input().split())
print(~-S*~-T)

Solution (Python):
S, T = map(int, input().split())
print(~-S*~-T)

Solution (Python):
a,b=map(int,input().split())
print(~-a*~-b)

Solution (Python):
a,b = map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
a, b = map(int, input().split())
print((a-1)*(b-1))

Solution (Python):
a, b = (int(i) for i in input().split())
print(a*b - (a+b-1))

Solution (Python):
def main():
    from sys import stdin, setrecursionlimit
    setrecursionlimit(10**6)
    r = stdin.readline()[:-1]
    
    
    

    a, b = map(int, r.split())
    print((a-1)*(b-1))

if __name__ == '__main__':
    main()

Solution (Python):
import sys

INPUT = lambda: sys.stdin.readline().rstrip()
MAP = lambda: map(int, INPUT().split())

sys.setrecursionlimit(10 ** 9)


def main():
    A, B = MAP()
    print((A - 1)*(B - 1))


if __name__ == '__main__':
    main()

Solution (Python):
a, b = map(int, input().split())
print((a-1)*(b-1))

Solution (Python):
a,b=map(int,input().split())
print(a*b-a-b+1)

Solution (Python):
a, b = list(map(int, input().split()))
print((a * b) - (a + b) + 1)

Solution (Python):
A = sorted(list(map(int, input().split())))

print((A[0]-1)*(A[1]-1))

Solution (Python):
import math
import queue
import bisect
import heapq
import time
import itertools

mod = int(1e9+7)

def swap(a,b):
    return (b,a)

def my_round(a,dig=0):
    p = 10 ** dig
    return (a * p * 2 + 1) // 2 / p

def gcd(a,b): 
    if (a<b):
        a,b = swap(a,b)
    if (b==0):
        return a
    else:
        return gcd(b,a%b)

def lcm(a,b): 
    return a/gcd(a,b)*b

def divisors(a): 
    divisors = []
    for i in range(1,int(a**0.5)+1):
        if a%i==0:
            divisors.append(i)
            if i!=a//i:
                divisors.append(a//i)
    return divisors

def is_prime(a): 
    if a<2:
        return False
    elif a==2:
        return True
    elif a%2==0:
        return False
    sqrt_num = int(a**0.5)
    for i in range(3,sqrt_num+1,2):
        if a%i==0:
            return False
    return True

def prime_num(a): 
    pn = [2]
    for i in range(3,int(a**0.5),2):
        prime = True
        for j in pn:
            if i%j==0:
                prime = False
                break
        if prime:
            pn.append(i)
    return pn

def prime_fact(a): 
    sqrt = math.sqrt(a)
    res = []
    i = 2
    if is_prime(a):
        res.append(a)
    else:
        while a!=1:
            while a%i==0:
                res.append(i)
                a //= i
            i += 1
    return res

def main():
    a,b = map(int,input().split())
    print((a-1)*(b-1))
    return

if __name__=='__main__':
    main()

Solution (Python):
a, b = map(int, input().split())
print((a-1)*(b-1))

Solution (Python):
a,b=map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
def main():
    A, B = list(map(int, input().split()))

    print((A-1) * (B-1))

main()

Solution (Python):
a,b = sorted(map(int,input().split()))
print(a*b-a-b+1)

Solution (Python):
a,b=map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
X, t = map(int, input().split())
print((X-1)*(t-1))

Solution (Python):
a, b = map(int, input().split())

print(a*b-(a+b-1))

Solution (Python):
A, B = map(int, input().split())
r = A * B - (A + B -1)

print(int(r))

Solution (Python):
num = list(map(int, input().split()))
print((num[0]-1)*(num[1]-1))

Solution (Python):
A, B = map(int, input().split())

S = (A-1)*(B-1)

print(S)

Solution (Python):
A,B = map(int,input().split())
print(A*B-(A+B)+1)

Solution (Python):
a,b=map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
A, B = map(int, input().split())
print((A-1)*(B-1))

Solution (Python):
a, b = map(int, input().split())
print((a-1)*(b-1))

Solution (Python):
A, B = map(int, input().split())
print(A * B - (A + B) + 1)

Solution (Python):
A, B = map(int, input().split())
print((A-1)*(B-1))

Solution (Python):
a,b=map(int, input().split())
print(a*b-a-b+1)

Solution (Python):
a, b = map(int, input().split())
print((a-1)*(b-1))

Solution (Python):
A, B = map(int, input().split())
print(A*B-(A+B-1))

Solution (Python):
a, b = map(int, input().split())

print((a - 1) * (b - 1))

Solution (Python):
a, b = map(int, input().split())
print((a - 1) * (b - 1))

Solution (Python):
a,b = map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
a, b = map(int,input().split())

print(a*b-(a+b-1))

Solution (Python):
A, B = map(int, input().split())
print((A-1)*(B-1))

Solution (Python):
a,b = map(int,input().split())

print( a * b - a - b + 1)

Solution (Python):
import sys

a, b = map(int, sys.stdin.readline().split())

def main():
    return a * b - (a + b - 1)

if __name__ == '__main__':
    ans = main()
    print(ans)

Solution (Python):
a, b = map(int, input().split())
print(a*b - (a+b-1))

Solution (Python):
a, b = map(int, input().split())
print( (a-1) * (b-1))

Solution (Python):
A, B = map(int, input().split())
print(A * B - A - B + 1)

Solution (Python):
a,b = map(int,input().split())

print((a-1)*(b-1))

Solution (Python):
a, b = map(int, input().split())
print((a - 1) * (b - 1))

Solution (Python):
a,b = map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
a,b=map(int,input().split())
print(a*b-a-b+1)

Solution (Python):
a,b=map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
a, b = map(lambda x: int(x), input().split())

print((a-1)*(b-1))

Solution (Python):
A,B=map(int, input().split())  

print(A*B-A-B+1)

Solution (Python):
a, b = [int(_) for _ in input().split()]
print((a-1)*(b-1))

Solution (Python):
A,B=tuple(map(int,input().split()))
print((A-1)*(B-1))

Solution (Python):
import sys
input = sys.stdin.readline
A,B = [int(i) for i in input().split()]
print((A-1)*(B-1))

Solution (Python):
a,b=map(int, input().split())
print((a-1)*(b-1))

Solution (Python):

A, B = [int(_) for _ in input().split()]

ans = (A-1)*(B-1)
print(ans)

Solution (Python):

a,b = map(int,input().split())
print(a*b-(a+b-1))

Solution (Python):
import bisect
import cmath
import heapq
import itertools
import math
import operator
import os
import re
import string
import sys
from collections import Counter, deque, defaultdict
from copy import deepcopy
from decimal import Decimal
from fractions import gcd
from functools import lru_cache, reduce
from operator import itemgetter, mul, add, xor

import numpy as np

if os.getenv("LOCAL"):
    sys.stdin = open("_in.txt", "r")

sys.setrecursionlimit(10 ** 9)
INF = float("inf")
IINF = 10 ** 18
MOD = 10 ** 9 + 7


a, b = list(map(int, sys.stdin.buffer.readline().split()))
print( (a -1) * (b - 1))

Solution (Python):
a = list(input().split(" "))
s = int(a[0]) * int(a[1])
r = int(a[0]) + int(a[1]) -1
print(s - r)

Solution (Python):
a, b = map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
a,b=map(int, input().split())
print(a*b-a-b+1)

Solution (Python):
a,b=map(int, input().split())
print((a-1)*(b-1))

Solution (Python):
a,b=map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
a, b = map(int, input().split())
print((a-1)*(b-1))

Solution (Python):
a,b = map(int,input().split())
print((a-1)*(b-1))

Solution (Python):


(a,b) = [int(i) - 1 for i in input().rstrip().split(" ")]
print(a * b)

Solution (Python):
a, b = map(int, input().split())

print((a-1)*(b-1))

Solution (Python):
a,b=map(int,input().split())
print(a*b-a-b+1)

Solution (Python):
a,b=map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
A,B = map(int,input().split())
A-=1
B-=1
print(A*B)

Solution (Python):
a,b=map(int,input().split())

print(a*b-a-b+1)

Solution (Python):
a,b=map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
a,b=map(int,input().split())
print(a*b-(a+b-1))

Solution (Python):
a,b=map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
a,b=map(int,input().split())
print(a*b-(a+b-1))

Solution (Python):
a,b = list(map(int,input().split()))
print((a-1)*(b-1))

Solution (Python):
a,b = map(int,input().split())

print(a*b-(a+b)+1)

Solution (Python):
A,B=map(int,input().split())
print(A*B-A-B+1)

Solution (Python):
import sys
input = sys.stdin.readline
A, B = [int(x) for x in input().split()]
print((A-1) * (B-1))

Solution (Python):
a,b = map(int, input().split())
sum = (a-1)*(b-1)
print(sum)

Solution (Python):
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
LISTS = lambda: list(map(str,input().split()))
def do():
    a,b=INTM()
    print(a*b-(a+b-1))
if __name__ == '__main__':
    do()

Solution (Python):
a,b = map(int, input().split())
ans= a * b - a - b + 1
print(ans)

Solution (Python):
A, B = map(int, input().split())

print(A*B - (A+B-1))

Solution (Python):
def main():
    a,b = map(int,input().split())
    print((a-1)*(b-1))


if __name__ == '__main__':
    main()

Solution (Python):
A,B=map(int,input().split())
print((A-1)*(B-1))

Solution (Python):
A,B=map(int, input().split())
print((A-1)*(B-1))

Solution (Python):
a,b=map(int,input().split())
print(a*b-a-b+1)

Solution (Python):
a, b = map(int, input().split())
print(a*b - b - (a-1))

Solution (Python):
a, b = map(int, input().split())

print(a * b - a - b + 1)

Solution (Python):
a,b=map(int,input().split())
print(a*b-a-b+1)

Solution (Python):

A,B=map(int,input().split())

print( (A-1)*(B-1) )

Solution (Python):
import sys
input = sys.stdin.readline
A, B = map(int,input().split())
print((A-1)*(B-1))

Solution (Python):
a, b = map(int, input().split())
print(a*b + 1 - a - b)

Solution (Python):
a, b = map(int, input().split())
print((a-1)*(b-1))

Solution (Python):
A, B = map(int, input().split())
print((A - 1) * (B - 1))

Solution (Python):
A, B = map(int, input().split())
S = (A - 1) * (B - 1)
print(S)

Solution (Python):
A, B = map(int, input().split())

print((A - 1) * (B - 1))

Solution (Python):
a, b = map(int, input().split())
print((a-1) * (b-1))

Solution (Python):
a, b = map(int, input().split())

print((a-1)*(b-1))

Solution (Python):
n,k = map(int,input().split())
print((n-1)*(k-1))

Solution (Python):
a, b = map(int, input().split())
print(a * b - (a + b - 1))

Solution (Python):
import sys 

a,b = map(int, sys.stdin.readline().split())

print(a * b - a - b + 1)

Solution (Python):
a,b=map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
a,b = map(int,input().split())
print(a*b-a-b+1)

Solution (Python):
a,b = map(int,input().split())
print(a*b-a-b+1)

Solution (Python):
a,b=map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
A, B = map( int, input().split() )
print( (A - 1) * (B - 1) )

Solution (Python):
A, B = list(map(int, input().split()))
print((A - 1) * (B - 1))

Solution (Python):
a,b = map(int,input().split())
print(a*b - a - b + 1)

Solution (Python):
A,B = list(map(int,input().split()))
print((A-1)*(B-1))

Solution (Python):
a,b=map(int,input().split())
print(a*b-a-b+1)

Solution (Python):
a,b=map(int,input().split())
print((a-1)*(b-1))

Solution (Python):
A,B=map(int,input().split())
print((A-1)*(B-1))

Solution (Python):
A, B = [int(x) for x in input().split()]
print((A-1)*(B-1))

Solution (Python):
(a, b) = map(int, input().split())
print((a - 1) * (b - 1))

Solution (Python):
a, b = map(int, input().split())
print((a-1)*(b-1))

Solution (Python):

A, B = map(int, input().split())
print((A-1) * (B-1))

Solution (Python):
a,b=map(int,input().split())
print(a*b-a-b+1)

Solution (Python):
a,b = map(int,input().split())

print(a*b-(a+b-1))

Solution (Python):
line = input().split(' ')
A, B = [int(i) for i in line]

S = (A-1)*(B-1)

print(S)

Solution (Python):
a, b = map(int, input().split())
ans = (a-1)*(b-1)
print(ans)

Solution (Python):
a,b=map(int,input().split())
print(a*b-(a+b-1))

Solution (Python):
a, b = map(int, input().split())
n = a * b - (a + b - 1)
print(n)

Solution (Python):
a,b=map(int,input().split())
print((a-1)*(b-1))