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

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

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

Solution (Python):
x,y = map(int,input().split())
print((x-1)*(y-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):
def main():
  a, b = map(int, input().split())
  print((a*b) - (1*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())

a = A-1
b = B-1

print(a*b)

Solution (Python):
def main(a,b):
    print((a-1)*(b-1))

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


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

main()

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

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

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

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

print((height - 1) * (width - 1))

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

Solution (Python):

a = list(map(int, input().split()))
print(a[0]*a[1]-a[0]-a[1]+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,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().strip().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 = 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("{}".format((n-1)*(m-1)))

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

Solution (Python):



def main():
    """Function."""
    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*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=input().split()
print((int(a)-1)*(int(b)-1))

Solution (Python):
a, b = [int(item) for item 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 = list(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):
import sys

def solve(a, b):
    
    
    
    s=int(a)-1
    r=int(b)-1
    return s*r


def readQuestion():
    ws = sys.stdin.readline().strip().split()
    a = int(ws[0])
    b = int(ws[1])
    return (a, b)

def main():
    print(solve(*readQuestion()))


main()

Solution (Python):
import sys


def solve(a, b):
    s=int(a)-1
    r=int(b)-1
    return s*r


def readQuestion():
    line = sys.stdin.readline().rstrip()
    [str_a, str_b] = line.split(' ')
    return (int(str_a), int(str_b))

def main():
    a, b = readQuestion()
    answer = solve(a, b)
    print(answer)
    
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())
s = (A * B) - (A + B - 1)
print(s)

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):
a,b=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 * 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().strip().split()))
ans = (A-1)*(B-1)
print(ans)

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

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

Solution (Python):
def main():
    a, b = map(int, input().strip().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=input().strip().split(" ")
b=[int(i) for i in a]

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

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

Solution (Python):
ab = list(map(int, input().split()))
a = ab[0]
b = ab[1]
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 solve():
    h, w = map(int, input().split())
    print((h - 1) * (w - 1))


if __name__ == '__main__':
    solve()

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

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

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

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

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

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

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

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

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

Solution (Python):
print(eval("~-"+input().replace(" ","*~-")))

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):
N = list(map(int, input().split()))
print((N[0]-1)*(N[1]-1))

Solution (Python):
from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
import sys
sys.setrecursionlimit(10000)
INF = float("inf")
YES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"
dy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]
dy8, dx8 = [0, -1, 0, 1, 1, -1, -1, 1], [1, 0, -1, 0, 1, 1, -1, -1]


def inside(y, x, H, W):
    return 0 <= y < H and 0 <= x < W


def ceil(a, b):
    return (a + b - 1) // b


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

if __name__ == '__main__':
    main()

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

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 garden(x, y):
    return (x - 1) * (y - 1)

a, b = map(int, input().split())
print(garden(a, b))

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

Solution (Python):
print(eval('~-'+'*~-'.join(input().split())))

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

Solution (Python):
print(eval("("+input().replace(" ", "-1)*(")+"-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-(a+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 * 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(_) for _ 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,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-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 = list(map(int, input().split()))
print((N - 1) * (K - 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())

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

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

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

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

tate = A - 1
yoko = B - 1
Area = tate * yoko
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 * 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 = 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):
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):
ab = list(map(int, input().split()))
a = ab[0]
b = ab[1]
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 = 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):
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):
list1 = list(map(int, input().split()))
a = list1[0]
b = list1[1]
ans = a*b -a-b+1
print(ans)

Solution (Python):

import sys
try: from typing import Any, Union, List, Tuple, Dict
except ImportError: pass
sys.setrecursionlimit(10**6)
def debug(*args): print(*args, file=sys.stderr)
def exit(): sys.exit(0)

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

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

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

def main():
	print((a - 1) * (b - 1))
			
main()

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

Solution (Python):
if __name__ == '__main__':
    AB = [int(i) for i in input().split()]
    print((AB[0]-1)*(AB[1]-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 = 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 = list(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 = 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())
a = a-1
b = b-1
print(a * b)

Solution (Python):
a,b = map(int, raw_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())

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

Solution (Python):
A, B = (int(i) for i in 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):
s = input().split()
a, b = int(s[0]), int(s[1])
print((a - 1) * (b - 1))

Solution (Python):
inputs=input().split()
A=int(inputs[0])
B=int(inputs[1])
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())
result = A * B - A - B + 1
print(result)

Solution (Python):
a,b = map(int, raw_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-1)*(B-1)
print(S)

Solution (Python):

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

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

Solution (Python):
import sys
y = input().split()
H = int(y[0])
W = int(y[1])
print((H-1)*(W-1))

Solution (Python):
print((lambda x:(x[0]-1)*(x[1]-1))(list(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((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):
init = input().split(" ")
init = [int(c) for c in init]

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

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

Solution (Python):


a,b = map(int, input().split())
if (a >= 2 and a <= 100) and (b >= 2 and b <= 100):
    area = a * b - (a + b) + 1

print(area)

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


print("%d" % ((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())
num= a*b-a-b+1
print(num)

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

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

Solution (Python):
inputs = input().strip().split()

yoko = int(inputs[0])
tate = int(inputs[1])

print((yoko - 1) * (tate - 1))

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

Solution (Python):
num = input().split()

tate = int(num[0]) - 1
yoko = int(num[1]) - 1

result = tate * yoko

print(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):
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(str((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():
    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):
inp = input()
height, width = inp.split()

print( (int(height) - 1) * (int(width) - 1))

Solution (Python):

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

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

assert solve(2, 2) == 1
assert solve(5, 7) == 24
a, b = map(int, raw_input().split())
print solve(a, b)

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

Solution (Python):
A,B = input().split(' ')
A=int(A)-1
B=int(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):
string = input()
a, b = int(string.split(' ')[0]), int(string.split(' ')[1])
result = a * b - (a + b -1)
print(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):
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-1)*(b-1))

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

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

Solution (Python):
A = [int(i) for i in input().split(" ")]
ans = A[0] * A[1] - (1 * A[0] + 1 * A[1] -1)

print(ans)

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

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

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

Solution (Python):
print(eval("(" + input().replace(" ", "-1)*(") + "-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 main7():
    buf = input("");
    bufs = buf.split();
    num = [];
    for i in range(2):
        num.append(int(bufs[i]));
    result = (num[0] - 1) * (num[1] - 1);
    print(result);



if __name__ == '__main__':
    main7()

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

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

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

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

Solution (Python):


INF = float('inf')
def inpl(): return list(map(int, input().split()))


a, b = inpl()
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-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,raw_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())

    
    ans = editorial(A, B)
    print(ans)


def AC(A, B):
    ans = (A - 1) * (B - 1)
    return ans


def editorial(A, B):
    return A * B - A - B + 1


if __name__ == '__main__':
    main()

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

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

Solution (Python):
import sys
A,B = map(int, sys.stdin.read().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*b - a - b + 1)

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

c = (a - 1) * (b - 1)

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

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

print(area)

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 = [int(i) for i in input().split()]
ans = a * b - (a + b - 1)
print(ans)

Solution (Python):
def getinputdata():

    array_result = []    
    array_result.append(input().split(" "))

    flg = True

    try:
        while flg:

            data = input()

            if(data != ""):
                
                array_result.append(data.split(" "))

                flg = True

            else:

                flg = False
    finally:

        return array_result

arr_data = getinputdata()

a=int(arr_data[0][0])
b=int(arr_data[0][1])


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 = (int(i) for i in input().split())

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

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

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

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

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

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

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

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

Solution (Python):
import sys


def solve(A,B):
    anser=A*B-(A+B-1)
    return anser


def readQuestion():
    line = sys.stdin.readline().rstrip()
    [str_a, str_b] = line.split(' ')
    return (int(str_a), int(str_b))

def main():
    a, b = readQuestion()
    answer = solve(a, b)
    print(answer)
    
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*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):
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 * 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())
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*b-a-b+1)

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

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

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

Solution (Python):


def solve(A, B):
    ans = A * B
    ans -= (A + B) - 1
    return ans

if __name__ == "__main__":

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

Solution (Python):
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools

sys.setrecursionlimit(10**7)
inf = 10**20
eps = 1.0 / 10**10
mod = 10**9+7
dd = [(-1,0),(0,1),(1,0),(0,-1)]
ddn = [(-1,0),(-1,1),(0,1),(1,1),(1,0),(1,-1),(0,-1),(-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 pf(s): return print(s, flush=True)


def main():
    a,b = LI()
    return (a-1)*(b-1)



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