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):
a,b=map(int, input().split())     
print(a*b-a-b+1)

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

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):
x, y = map(int, input().split())
print(x*y - x - 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*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):
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools
from collections import deque

sys.setrecursionlimit(10**7)
inf = 10**20
mod = 10**9 + 7

DR = [1, -1, 0, 0]
DC = [0, 0, 1, -1]

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()
     
def main():
    A, B = LI()
    ans = A * B
    ans -= A 
    ans -= B
    ans += 1
    print(ans)

main()

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

Solution (Python):
def mapt(fn, *args):
    return list(map(fn, *args))


def Input():
    return mapt(int, input().split(" "))


def main():
    a, b = Input()
    print((a-1) * (b-1))


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 = 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):
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())
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-1)*(B-1))

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

Solution (Python):
n,i=map(int,input().split())
print((n-1)*(i-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(str(a*b-a-b+1))

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

Solution (Python):
len_a, len_b = map(int, input().split())

total_area = len_a * len_b
road = len_a + len_b - 1
print(total_area - road)

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

Solution (Python):
H, W = map(int, input().split())

print((H-1)*(W-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())

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

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 * 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())
ans = (A * B) - (A + 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 * 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())
ans = A * B - (B + A - 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-1) * (B-1))

Solution (Python):
import sys
import math


sys.setrecursionlimit(10 ** 8)
ini = lambda: int(sys.stdin.readline())
inm = lambda: map(int, sys.stdin.readline().split())
inl = lambda: list(inm())
ins = lambda: sys.stdin.readline().rstrip()
debug = lambda *a, **kw: print("\033[33m", *a, "\033[0m", **dict(file=sys.stderr, **kw))

A,B = inm()

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):
n,m=map(int,input().split())
print((n-1)*(m-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-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):
a,b=input().split()
a=int(a)
b=int(b)
print(int((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):
n,m = map(int, input().split())
print((n-1)*(m-1))

Solution (Python):
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):
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-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 sys
input = sys.stdin.readline
ins = lambda: input().rstrip()
ini = lambda: int(input().rstrip())
inm = lambda: map(int, input().split())
inl = lambda: list(map(int, input().split()))

a, b = inm()
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(int((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())
res = (a - 1) * (b - 1)
print(res)

Solution (Python):
a,b = map(int, input().split())
print(a*b-a-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):
import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007


def main():
    A, B = map(int, readline().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 = 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*b - (a+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):

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 = 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):
a,b=map(int,input().split());print((a-1)*(b-1))

Solution (Python):
n,m=(int(i)-1 for i in input().strip().split(" "))
print(n*m)

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())
A, B = A - 1, B - 1
print(A * B)

Solution (Python):
n,i=map(int,input().split())
print((n-1)*(i-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 = list(map(int, input().split()))
my_result = (a - 1) * (b - 1)
print(my_result)

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
input = sys.stdin.readline  

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

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):
tmp = input().split(" ")
print((int(tmp[0]) - 1) * (int(tmp[1]) - 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
def MI(): return map(int,sys.stdin.readline().rstrip().split())

A,B = MI()
print((A-1)*(B-1))

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

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

Solution (Python):


import math

import itertools
from collections import deque
from collections import Counter
import heapq
from fractions  import gcd

import bisect
a,b=map(int,input().split())
print(a*b-a-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 * b - a - b + 1)

Solution (Python):


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

print(s)

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

Solution (Python):












































def calculation(lines):
    A, B = list(map(int, lines[0].split()))
    return [(A-1)*(B-1)]



def get_input_lines(lines_count):
    lines = list()
    for _ in range(lines_count):
        lines.append(input())
    return lines



def get_testdata(pattern):
    if pattern == 1:
        lines_input = ['2 2']
        lines_export = [1]
    if pattern == 2:
        lines_input = ['5 7']
        lines_export = [24]
    return lines_input, lines_export



def get_mode():
    import sys
    args = sys.argv
    if len(args) == 1:
        mode = 0
    else:
        mode = int(args[1])
    return mode



def main():
    mode = get_mode()
    if mode == 0:
        lines_input = get_input_lines(1)
    else:
        lines_input, lines_export = get_testdata(mode)

    lines_result = calculation(lines_input)

    for line_result in lines_result:
        print(line_result)

    
    
    
    
    
    
    
    



if __name__ == '__main__':
    main()

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

Solution (Python):

if __name__ == '__main__':
	
	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):


def main():

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

    ans = (A-1) * (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 = 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("{}".format(a*b - (a+b-1)))

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

S = a * b

L = a + b - 1

print(S - L)

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

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

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):
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

a, b = map(int, readline().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):
a,b=map(int,input().split())
res = (a-1)*(b-1)
print(res)

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=map(int,input().split())
print((x-1)*(y-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)
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 * b - a - 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*~-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 = 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((B-1) * (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-1)*(b-1))

Solution (Python):
a,b = map(int, raw_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*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 sys
A,B = map(int,input().split())
if not ( 2 <= A <= 100 and 2 <= B <= 100 ):
    sys.exit()

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

Solution (Python):
import sys

input = sys.stdin.readline


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

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

    print(ans)


if __name__ == "__main__":
    main()

Solution (Python):
import sys
rm = lambda: map(int, sys.stdin.buffer.readline().split())

a, b = rm()
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+1-a-b)

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):
n, m = map(int, input().split())
print((n - 1) * (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):
n,m=input().split(" ")
m=int(m)
n=int(n)
multi=(m*n)-(m+n)+1
print(multi)
print()

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

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

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

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

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):
m,n = map(int,input().split())

print((m-1) * (n-1))

Solution (Python):
A, B = list(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-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)

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())

f = (A*B) - A - B + 1

print(f)

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] = 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 * b - (a + b - 1))

Solution (Python):
import bisect
import copy
import heapq
import math
import sys
from collections import *
from functools import lru_cache
from itertools import accumulate, combinations, permutations, product
def input():
    return sys.stdin.readline()[:-1]
def ruiseki(lst):
    return [0]+list(accumulate(lst))
sys.setrecursionlimit(500000)
mod=pow(10,9)+7
al=[chr(ord('a') + i) for i in range(26)]
direction=[[1,0],[0,1],[-1,0],[0,-1]]

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 = 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):
def main():
    A, B = map(int, input().split())
    print((A-1)*(B-1))
main()

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())
ans = A*B-(A*1+B*1-1)
print(ans)

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

Solution (Python):
def main():
    from builtins import int, map, list, print
    import sys
    sys.setrecursionlimit(10 ** 6)

    input = (lambda: (sys.stdin.readline()).rstrip())
    input_list = (lambda: input().split())
    input_number = (lambda: int(input()))
    input_number_list = (lambda: list(map(int, input_list())))

    A, B = input_number_list()
    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 = 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):
import sys
import heapq, math
from itertools import zip_longest, permutations, combinations, combinations_with_replacement
from itertools import accumulate, dropwhile, takewhile, groupby
from functools import lru_cache
from copy import deepcopy

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)-(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):
def i():
	return int(input())
def i2():
	return map(int,input().split())
def s():
	return str(input())
def l():
	return list(input())
def intl():
	return list(int(k) for k in input().split())

a,b = i2()
print(a*b - (1*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)

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())
s = a+b-1
print(a*b-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*B-(A+B-1))

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

Solution (Python):
n = input().split()
a, b = int(n[0]), int(n[1])
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())

area = a * b
ans = area - (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())
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 = 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):
ab = input()
ab_lis = ab.split()
a = int(ab_lis[0])
b = int(ab_lis[1])

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

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

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


if __name__ == "__main__":
    main()

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

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

Solution (Python):
def actual(a, b):
    return (a - 1) * (b - 1)

a, b = map(int, input().split())
print(actual(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-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):
mod = 1000000007
eps = 10**-9


def main():
    import sys
    input = sys.stdin.readline

    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):
print((lambda a, b: (a - 1) * (b - 1))(*map(int, input().split())))

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)*(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):
from sys import  stdin
A, B = [int(x) for x in stdin.readline().rstrip().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())
c = a + b - 1
print(a * b - c)

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*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*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())
s = a*b-a-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*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 = 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):
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())
ans = a * b - a - b + 1
print(ans)

Solution (Python):
N,i=map(int,input().split())
print((N-1)*(i-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=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):
def resolve():
	a, b = map(int, input().split())
	print(a*b - (a+b-1))
resolve()

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

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))