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

-----Sample Output-----
1

In this case, the area is 1 square yard.
[{"code": "a,b=map(int, input().split())     \nprint(a*b-a-b+1)", "passed": true, "time": 0.24, "memory": 14176.0, "status": "done"}, {"code": "n,m = map(int, input().split())\nprint((n-1)*(m-1))", "passed": true, "time": 0.15, "memory": 14172.0, "status": "done"}, {"code": "a,b = list(map(int,input().split()))\nprint(((a-1) * (b-1)))\n", "passed": true, "time": 0.14, "memory": 14284.0, "status": "done"}, {"code": "A, B = list(map(int, input().split()))\nprint(((A-1)*(B-1)))\n", "passed": true, "time": 0.19, "memory": 14284.0, "status": "done"}, {"code": "a,b=map(int, input().split())\n\nprint((a-1)*(b-1))", "passed": true, "time": 0.23, "memory": 14204.0, "status": "done"}, {"code": "a, b = map(int, input().split())\nprint((a * b) - (a + b - 1))", "passed": true, "time": 0.25, "memory": 14072.0, "status": "done"}, {"code": "A,B = map(int,input().split())\nprint((A-1)*(B-1))", "passed": true, "time": 0.99, "memory": 14120.0, "status": "done"}, {"code": "A, B = map(int, input().split())\nprint((A - 1) * (B - 1))", "passed": true, "time": 0.15, "memory": 14220.0, "status": "done"}, {"code": "a,b = list(map(int,input().split()))\nprint(((a-1)*(b-1)))\n\n", "passed": true, "time": 0.28, "memory": 14328.0, "status": "done"}, {"code": "A,B = map(int,input().split())\nprint(A*B-(A+B-1))", "passed": true, "time": 0.22, "memory": 14108.0, "status": "done"}, {"code": "a,b=map(int,input().split())\nprint((a-1)*(b-1))", "passed": true, "time": 0.24, "memory": 14236.0, "status": "done"}, {"code": "a, b = map(int, input().split())\nprint((a-1)*(b-1))", "passed": true, "time": 0.27, "memory": 14044.0, "status": "done"}, {"code": "A, B = map(int, input().split())\nans = (A * B) - (A + B - 1)\n\nprint(ans)", "passed": true, "time": 0.19, "memory": 14076.0, "status": "done"}, {"code": "a, b = map(int, input().split())\nprint((a - 1) * (b - 1))", "passed": true, "time": 0.14, "memory": 14236.0, "status": "done"}, {"code": "A,B=list(map(int,input().split()))\n\nprint((A*B-A-B+1))\n", "passed": true, "time": 0.16, "memory": 14264.0, "status": "done"}, {"code": "A,B = map(int, input().split())\n\nprint(A*B-A-B+1)", "passed": true, "time": 0.17, "memory": 14168.0, "status": "done"}, {"code": "a, b = list(map(int, input().split()))\nprint(((a - 1) * (b - 1)))\n", "passed": true, "time": 0.24, "memory": 14088.0, "status": "done"}, {"code": "A,B = list(map(int, input().split()))\n\nans = int(A*B-A-B+1)\nprint(ans)\n", "passed": true, "time": 0.34, "memory": 14176.0, "status": "done"}, {"code": "a,b = map(int,input().split())\nprint((a-1)*(b-1))", "passed": true, "time": 0.14, "memory": 14284.0, "status": "done"}, {"code": "A,B= (int(x) for x in input().split())\nmenseki=A*B\nnyan=menseki-A-B+1\nprint(nyan)", "passed": true, "time": 0.26, "memory": 14096.0, "status": "done"}, {"code": "A,B = (int(x) for x in input().split())\nprint((A-1)*(B-1))", "passed": true, "time": 0.14, "memory": 14288.0, "status": "done"}, {"code": "import sys\nimport math\n\n#https://atcoder.jp/contests/agc008/submissions/15248942\nsys.setrecursionlimit(10 ** 8)\nini = lambda: int(sys.stdin.readline())\ninm = lambda: map(int, sys.stdin.readline().split())\ninl = lambda: list(inm())\nins = lambda: sys.stdin.readline().rstrip()\ndebug = lambda *a, **kw: print(\"\\033[33m\", *a, \"\\033[0m\", **dict(file=sys.stderr, **kw))\n\nA,B = inm()\n\nprint(A*B-A-B+1)\n", "passed": true, "time": 0.14, "memory": 14340.0, "status": "done"}, {"code": "a,b = map(int,input().split())\nprint((a-1)*(b-1))", "passed": true, "time": 0.14, "memory": 14172.0, "status": "done"}, {"code": "n,i=map(int,input().split())\nprint((n-1)*(i-1))", "passed": true, "time": 0.14, "memory": 14220.0, "status": "done"}, {"code": "A,B=map(int,input().split())\nprint((A-1)*(B-1))", "passed": true, "time": 0.14, "memory": 14224.0, "status": "done"}, {"code": "a,b = map(int, input().split())\nprint((a-1)*(b-1))", "passed": true, "time": 0.14, "memory": 14220.0, "status": "done"}, {"code": "a,b = map(int,input().split())\nprint(a*b-a-b+1)", "passed": true, "time": 0.14, "memory": 14044.0, "status": "done"}, {"code": "a, b = list(map(int, input().split()))\nprint((a-1)*(b-1))", "passed": true, "time": 0.25, "memory": 14076.0, "status": "done"}, {"code": "a,b=map(int,input().split())\nprint((a-1)*(b-1))", "passed": true, "time": 0.14, "memory": 14312.0, "status": "done"}, {"code": "a,b=map(int,input().split())\nprint((a-1)*(b-1))", "passed": true, "time": 0.14, "memory": 14236.0, "status": "done"}, {"code": "a, b = map(int, input().split())\nprint((a-1)* (b-1))", "passed": true, "time": 0.23, "memory": 14168.0, "status": "done"}, {"code": "a,b=map(int,input().split(\" \"))\nprint((a-1)*(b-1))", "passed": true, "time": 0.14, "memory": 14092.0, "status": "done"}, {"code": "a, b = map(int, input().split())\n\nprint((a-1) * (b-1))", "passed": true, "time": 0.14, "memory": 14260.0, "status": "done"}, {"code": "a,b = map(int,input().split())\n\nprint((a-1)*(b-1))", "passed": true, "time": 0.15, "memory": 14072.0, "status": "done"}, {"code": "A,B = map(int,input().split())\nprint(A*B-A-B+1)", "passed": true, "time": 0.14, "memory": 14044.0, "status": "done"}, {"code": "a,b = map(int, input().split())\nprint(a*b-a-b+1)", "passed": true, "time": 0.22, "memory": 14044.0, "status": "done"}, {"code": "a, b = map(int, input().split())\nprint(a * b - a - b + 1)", "passed": true, "time": 0.16, "memory": 14096.0, "status": "done"}, {"code": "A,B = map(int,input().split())\nans = A * B - (B + A - 1)\nprint(ans)", "passed": true, "time": 0.15, "memory": 14252.0, "status": "done"}, {"code": "a,b = map(int,input().split())\nprint((a-1)*(b-1))", "passed": true, "time": 0.16, "memory": 14176.0, "status": "done"}, {"code": "A, B = map(int, input().split())\n\nprint((A-1)*(B-1))", "passed": true, "time": 0.24, "memory": 14072.0, "status": "done"}, {"code": "a, b = list(map(int, input().split()))\nprint((a*b - a - b + 1))\n", "passed": true, "time": 0.15, "memory": 14072.0, "status": "done"}, {"code": "a,b = map(int,input().split())\nprint((a-1)*(b-1))", "passed": true, "time": 0.15, "memory": 14252.0, "status": "done"}, {"code": "import sys\ninput = sys.stdin.readline\nins = lambda: input().rstrip()\nini = lambda: int(input().rstrip())\ninm = lambda: map(int, input().split())\ninl = lambda: list(map(int, input().split()))\n\na, b = inm()\nprint(a*b - 1*a - 1*b + 1)", "passed": true, "time": 0.15, "memory": 14236.0, "status": "done"}, {"code": "a,b=input().split()\na=int(a)\nb=int(b)\nprint(int((a-1)*(b-1)))", "passed": true, "time": 0.2, "memory": 14196.0, "status": "done"}, {"code": "a, b = map(int, input().split())\nprint((a - 1) * (b - 1))", "passed": true, "time": 0.14, "memory": 14284.0, "status": "done"}, {"code": "A, B = map(int, input().split())\n\nprint((A-1) * (B-1))", "passed": true, "time": 0.15, "memory": 14212.0, "status": "done"}, {"code": "a,b = map(int,input().split())\nprint((a-1)*(b-1))", "passed": true, "time": 0.22, "memory": 14284.0, "status": "done"}, {"code": "a,b=map(int, input().split())\nprint((a-1)*(b-1))", "passed": true, "time": 0.14, "memory": 14208.0, "status": "done"}, {"code": "a,b= map(int,input().split())\nprint((a-1)*(b-1))", "passed": true, "time": 0.14, "memory": 14284.0, "status": "done"}, {"code": "\na,b=map(int,input().split())\nprint((a-1)*(b-1))", "passed": true, "time": 0.14, "memory": 14068.0, "status": "done"}, {"code": "a,b=map(int,input().split())\nprint((a-1)*(b-1))", "passed": true, "time": 0.14, "memory": 14208.0, "status": "done"}, {"code": "A,B=list(map(int,input().split()))\nprint((A*B-(A+B-1)))\n\n", "passed": true, "time": 0.14, "memory": 14244.0, "status": "done"}, {"code": "w,h = map(int, input().split(\" \"))\nprint((w-1)*(h-1))", "passed": true, "time": 0.14, "memory": 14188.0, "status": "done"}, {"code": "a,b,=map(int,input().split())\nprint((a-1)*(b-1))", "passed": true, "time": 0.14, "memory": 14248.0, "status": "done"}, {"code": "a,b=map(int, input().split())\nprint(a*b-a-b+1)", "passed": true, "time": 0.14, "memory": 14292.0, "status": "done"}, {"code": "a,b = [int(x) for x in input().split()]\nprint((a-1)*(b-1))", "passed": true, "time": 0.15, "memory": 14192.0, "status": "done"}, {"code": "A, B = list(map(int, input().split()))\nprint(((A-1)*(B-1)))\n", "passed": true, "time": 0.14, "memory": 14284.0, "status": "done"}, {"code": "a,b = map(int,input().split())\nprint((a-1)*(b-1))", "passed": true, "time": 0.14, "memory": 14168.0, "status": "done"}, {"code": "a,b = map(int, input().split())\nprint((a-1)*(b-1))", "passed": true, "time": 0.14, "memory": 14176.0, "status": "done"}, {"code": "a, b = map(int, input().split())\nprint(a*b-(a+b-1))", "passed": true, "time": 0.14, "memory": 14284.0, "status": "done"}, {"code": "A,B=list(map(int,input().split()))\nprint(((A-1)*(B-1)))\n", "passed": true, "time": 0.14, "memory": 14328.0, "status": "done"}, {"code": "a,b=map(int,input().split())\nprint((a-1)*(b-1))", "passed": true, "time": 0.14, "memory": 14264.0, "status": "done"}, {"code": "a, b = map(int, input().split())\nprint((a-1)*(b-1))", "passed": true, "time": 0.15, "memory": 14120.0, "status": "done"}, {"code": "A,B=map(int,input().split())\nprint((A-1)*(B-1))", "passed": true, "time": 0.14, "memory": 14076.0, "status": "done"}, {"code": "import sys\n\nread = sys.stdin.read\nreadline = sys.stdin.readline\nreadlines = sys.stdin.readlines\nsys.setrecursionlimit(10 ** 9)\nINF = 1 << 60\nMOD = 1000000007\n\n\ndef main():\n    A, B = list(map(int, readline().split()))\n\n    print(((A - 1) * (B - 1)))\n\n    return\n\n\ndef __starting_point():\n    main()\n\n__starting_point()", "passed": true, "time": 0.15, "memory": 14116.0, "status": "done"}, {"code": "len_a, len_b = list(map(int, input().split()))\n\ntotal_area = len_a * len_b\nroad = len_a + len_b - 1\nprint((total_area - road))\n", "passed": true, "time": 0.15, "memory": 14288.0, "status": "done"}, {"code": "A, B = map(int, input().split())\nprint((A*B) - (A + B - 1))", "passed": true, "time": 0.15, "memory": 14044.0, "status": "done"}, {"code": "a,b=map(int,input().split())\nprint((a-1)*(b-1))", "passed": true, "time": 0.14, "memory": 14284.0, "status": "done"}, {"code": "a, b = map(int, input().split())\nprint(a*b - (a+b-1))", "passed": true, "time": 0.15, "memory": 14064.0, "status": "done"}, {"code": "a,b=map(int,input().split())\nprint((a-1)*(b-1))", "passed": true, "time": 0.15, "memory": 14176.0, "status": "done"}, {"code": "#!/usr/bin/env python3\n\ndef main():\n    a, b = list(map(int, input().split()))\n    print(((a - 1) * (b - 1)))\n\n\ndef __starting_point():\n    main()\n\n__starting_point()", "passed": true, "time": 0.15, "memory": 14272.0, "status": "done"}, {"code": "A, B,  = map(int, input().split())\nprint((A-1)*(B-1))", "passed": true, "time": 0.14, "memory": 14180.0, "status": "done"}, {"code": "a, b = map(int, input().split())\nprint((a-1)*(b-1))", "passed": true, "time": 0.15, "memory": 14084.0, "status": "done"}, {"code": "A, B = map(int, input().split())\nprint(A*B-A-B+1)", "passed": true, "time": 0.15, "memory": 14280.0, "status": "done"}, {"code": "a,b = map(int,input().split())\nprint((a-1)*(b-1))", "passed": true, "time": 0.21, "memory": 14220.0, "status": "done"}, {"code": "a, b = map(int, input().split())\nprint((a - 1) * (b - 1))", "passed": true, "time": 0.22, "memory": 14316.0, "status": "done"}, {"code": "A, B = map(int, input().split())\n\nC = A - 1\nD = B - 1\nE = C * D\n\nprint(E)", "passed": true, "time": 0.14, "memory": 14244.0, "status": "done"}, {"code": "a, b = map(int, input().split())\nans = (a-1) * (b-1)\nprint(ans)", "passed": true, "time": 0.14, "memory": 14188.0, "status": "done"}, {"code": "def mapt(fn, *args):\n    return list(map(fn, *args))\n\n\ndef Input():\n    return mapt(int, input().split(\" \"))\n\n\ndef main():\n    a, b = Input()\n    print((a-1) * (b-1))\n\n\nmain()", "passed": true, "time": 0.14, "memory": 14088.0, "status": "done"}, {"code": "# ABC106\n# A Garden\nA, B = list(map(int, input().split()))\nans = (A * B) - (A + B - 1)\nprint(ans)\n", "passed": true, "time": 0.14, "memory": 14180.0, "status": "done"}, {"code": "A,B = map(int, input().split())\nprint(A*B-(A+B-1))", "passed": true, "time": 0.14, "memory": 14172.0, "status": "done"}, {"code": "a,b = map(int,input().split())\nprint((a-1)*(b-1))", "passed": true, "time": 0.14, "memory": 14220.0, "status": "done"}, {"code": "H, W = map(int, input().split())\n\nprint((H-1)*(W-1))", "passed": true, "time": 0.14, "memory": 14084.0, "status": "done"}, {"code": "a,b = map(int, input ().split ())\nprint ((a-1)*(b-1))", "passed": true, "time": 0.18, "memory": 14108.0, "status": "done"}, {"code": "a,b = map(int,input().split())\nprint(a*b-a-b+1)", "passed": true, "time": 0.14, "memory": 14072.0, "status": "done"}, {"code": "a, b = map(int, input().split())\n\nprint((a - 1) * (b - 1))", "passed": true, "time": 0.15, "memory": 14104.0, "status": "done"}, {"code": "a,b=map(int,input().split())\nprint((a-1)*(b-1))", "passed": true, "time": 0.14, "memory": 14176.0, "status": "done"}, {"code": "a,b=map(int,input().split())\nprint(a*b-b-a+1)", "passed": true, "time": 0.14, "memory": 14052.0, "status": "done"}, {"code": "a,b = map(int,input().split())\nprint(str(a*b-a-b+1))", "passed": true, "time": 0.14, "memory": 14084.0, "status": "done"}, {"code": "A, B = map(int, input().split())\nprint((A-1) * (B - 1))", "passed": true, "time": 0.14, "memory": 14180.0, "status": "done"}, {"code": "a, b = map(int, input().split())\nres = (a - 1) * (b - 1)\nprint(res)", "passed": true, "time": 0.14, "memory": 14084.0, "status": "done"}, {"code": "a, b = map(int, input().split())\nprint((a-1)*(b-1))", "passed": true, "time": 0.14, "memory": 14312.0, "status": "done"}, {"code": "a,b=map(int,input().split())\nans=(a-1)*(b-1)\nprint(ans)", "passed": true, "time": 0.14, "memory": 14292.0, "status": "done"}, {"code": "a, b = map(int, input().split())\nprint(a * b - a - b + 1)", "passed": true, "time": 0.14, "memory": 14232.0, "status": "done"}, {"code": "x, y = map(int, input().split())\nprint(x*y - x - y + 1)", "passed": true, "time": 0.14, "memory": 14044.0, "status": "done"}, {"code": "a,b=map(int,input().split())\nprint(int((a-1)*(b-1)))", "passed": true, "time": 0.14, "memory": 14244.0, "status": "done"}, {"code": "a, b = map(int, input().split())\nprint((a*b) - (a + b - 1))", "passed": true, "time": 0.14, "memory": 14084.0, "status": "done"}, {"code": "a, b = map(int, input().split())\n\nprint((a - 1) * (b - 1))", "passed": true, "time": 0.14, "memory": 14168.0, "status": "done"}, {"code": "# coding = SJIS\n\na, b = map(int, input().split())\n\nprint((a - 1) * (b - 1))", "passed": true, "time": 0.14, "memory": 14176.0, "status": "done"}, {"code": "a,b,=map(int,input().split())\na-=1;b-=1\nprint(a*b)", "passed": true, "time": 0.14, "memory": 14096.0, "status": "done"}]