In K-city, there are n streets running east-west, and m streets running north-south. Each street running east-west and each street running north-south cross each other. We will call the smallest area that is surrounded by four streets a block. How many blocks there are in K-city?

-----Constraints-----
 - 2 ≤ n, m ≤ 100

-----Input-----
Input is given from Standard Input in the following format:
n m

-----Output-----
Print the number of blocks in K-city.

-----Sample Input-----
3 4

-----Sample Output-----
6

There are six blocks, as shown below:
[{"code": "a, b = map(int, input().split())\nprint((a - 1) * (b - 1))", "passed": true, "time": 0.14, "memory": 14176.0, "status": "done"}, {"code": "n,m = map(int,input().split())\n\nprint((n-1)*(m-1))", "passed": true, "time": 0.15, "memory": 14224.0, "status": "done"}, {"code": "m, n = map(int, input().split())\nprint((m - 1) * (n - 1))", "passed": true, "time": 0.24, "memory": 14180.0, "status": "done"}, {"code": "a,b = map(int,input().split())\nprint((a-1)*(b-1))", "passed": true, "time": 0.15, "memory": 14080.0, "status": "done"}, {"code": "x,y=map(int,input().split())\n\nprint((x-1)*(y-1))", "passed": true, "time": 0.15, "memory": 14300.0, "status": "done"}, {"code": "n, m = list(map(int, input().split()))\nprint(((n-1)*(m-1)))\n", "passed": true, "time": 0.23, "memory": 14232.0, "status": "done"}, {"code": "n,m=map(int,input().split())\nprint((n-1)*(m-1))", "passed": true, "time": 0.27, "memory": 14216.0, "status": "done"}, {"code": "#\n# abc069 a\n#\nimport sys\nfrom io import StringIO\nimport unittest\n\n\nclass TestClass(unittest.TestCase):\n    def assertIO(self, input, output):\n        stdout, stdin = sys.stdout, sys.stdin\n        sys.stdout, sys.stdin = StringIO(), StringIO(input)\n        resolve()\n        sys.stdout.seek(0)\n        out = sys.stdout.read()[:-1]\n        sys.stdout, sys.stdin = stdout, stdin\n        self.assertEqual(out, output)\n\n    def test_\u5165\u529b\u4f8b_1(self):\n        input = \"\"\"3 4\"\"\"\n        output = \"\"\"6\"\"\"\n        self.assertIO(input, output)\n\n    def test_\u5165\u529b\u4f8b_2(self):\n        input = \"\"\"2 2\"\"\"\n        output = \"\"\"1\"\"\"\n        self.assertIO(input, output)\n\n\ndef resolve():\n    n, m = list(map(int, input().split()))\n    print(((n-1)*(m-1)))\n\n\ndef __starting_point():\n    # unittest.main()\n    resolve()\n\n__starting_point()", "passed": true, "time": 0.24, "memory": 14592.0, "status": "done"}, {"code": "nums = list(map(int, input().split()))\nprint((nums[0] - 1) * (nums[1] - 1))", "passed": true, "time": 0.19, "memory": 14080.0, "status": "done"}, {"code": "n, m = map(int, input().split())\nprint((n-1) * (m-1))", "passed": true, "time": 0.15, "memory": 14228.0, "status": "done"}, {"code": "n,m = map(int,input().split())\nprint((n-1)*(m-1))", "passed": true, "time": 0.14, "memory": 14076.0, "status": "done"}, {"code": "N,M=map(int,input().split())\nprint((N-1)*(M-1))", "passed": true, "time": 1.71, "memory": 14072.0, "status": "done"}, {"code": "n, m = list(map(int, input().split()))\nprint(((n - 1) * (m - 1)))\n", "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.21, "memory": 14080.0, "status": "done"}, {"code": "n,m = map(int,input().split())\nprint((n - 1)*(m - 1))", "passed": true, "time": 0.25, "memory": 14176.0, "status": "done"}, {"code": "n, m = map(int, input().split())\nprint((n-1)*(m-1))", "passed": true, "time": 0.14, "memory": 14324.0, "status": "done"}, {"code": "n, m = map(int, input().split())\nans = (n-1)*(m-1)\nprint(ans)", "passed": true, "time": 0.14, "memory": 14224.0, "status": "done"}, {"code": "n,m = map(int,input().split())\n  \nprint((n-1)*(m-1))  ", "passed": true, "time": 0.15, "memory": 14176.0, "status": "done"}, {"code": "a,b=map(int,input().split())\nprint((a-1)*(b-1))", "passed": true, "time": 0.15, "memory": 14300.0, "status": "done"}, {"code": "n,m=map(int,input().split())\nprint((n-1)*(m-1))", "passed": true, "time": 0.23, "memory": 14112.0, "status": "done"}, {"code": "n, m = map(int,input().split())\n\nprint((n - 1) * (m - 1))", "passed": true, "time": 0.15, "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.21, "memory": 14216.0, "status": "done"}, {"code": "n,m = list(map(int, input().split()))\nprint(( (n-1)*(m-1) ))\n", "passed": true, "time": 0.14, "memory": 14200.0, "status": "done"}, {"code": "n,m = map(int,input().split())\nprint((n-1)*(m-1))", "passed": true, "time": 0.16, "memory": 14176.0, "status": "done"}, {"code": "n,m=map(int,input().split())\nprint((n-1)*(m-1))", "passed": true, "time": 0.14, "memory": 14176.0, "status": "done"}, {"code": "n, m = map(int, input().split())\nans = (n - 1) * (m - 1)\n\nprint(ans)", "passed": true, "time": 0.15, "memory": 14224.0, "status": "done"}, {"code": "n, m = map(int, input().split())\nprint(~-n * ~-m)", "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": 14180.0, "status": "done"}, {"code": "n, m = map(int,input().split())\nprint((n-1)*(m-1))", "passed": true, "time": 0.15, "memory": 14272.0, "status": "done"}, {"code": "n,m = map(int,input().split())\n\nprint((n+1)*(m+1)-2*(n+1)-(m+1-2)*2)", "passed": true, "time": 0.14, "memory": 14164.0, "status": "done"}, {"code": "n,m = map(int,input().split())\nprint((n-1)*(m-1))", "passed": true, "time": 0.15, "memory": 14284.0, "status": "done"}, {"code": "n,m=map(int,input().split())\nprint((n-1)*(m-1))", "passed": true, "time": 0.35, "memory": 14068.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": "n,m=map(int, input().split())   \nprint((n-1)*(m-1))", "passed": true, "time": 0.36, "memory": 14180.0, "status": "done"}, {"code": "n,m=map(int,input().split())\nprint((n-1)*(m-1))", "passed": true, "time": 0.14, "memory": 14084.0, "status": "done"}, {"code": "n, m = map(int, input().split())\nprint((n-1)*(m-1))", "passed": true, "time": 0.14, "memory": 14168.0, "status": "done"}, {"code": "a,b=list(map(int,input().split()))\nprint(((a-1)*(b-1)))\n", "passed": true, "time": 0.14, "memory": 14068.0, "status": "done"}, {"code": "n, m = map(int, input().split())\nprint((n-1)*(m-1))", "passed": true, "time": 0.14, "memory": 14324.0, "status": "done"}, {"code": "n,m = map(int, input().split())\nprint((n-1)*(m-1))", "passed": true, "time": 0.15, "memory": 14292.0, "status": "done"}, {"code": "a, b = map(int, input().split())\na -= 1\nb -= 1\nprint(a * b)", "passed": true, "time": 0.34, "memory": 14276.0, "status": "done"}, {"code": "n, m = map(int, input().split())\nprint((n - 1) * (m - 1))", "passed": true, "time": 0.21, "memory": 14320.0, "status": "done"}, {"code": "N,M=list(map(int,input().split()))\nprint(((N-1)*(M-1)))\n", "passed": true, "time": 0.22, "memory": 14208.0, "status": "done"}, {"code": "n,m = map(int,input().split())\nprint((n-1)*(m-1))", "passed": true, "time": 0.15, "memory": 14288.0, "status": "done"}, {"code": "N, M = map(int, input().split())\nprint((N-1)*(M-1))", "passed": true, "time": 0.2, "memory": 14068.0, "status": "done"}, {"code": "x,y=map(int,input().split())\nprint((x-1)*(y-1))", "passed": true, "time": 0.15, "memory": 14112.0, "status": "done"}, {"code": "n,m=map(int,input().split())\nprint((n-1)*(m-1))", "passed": true, "time": 0.14, "memory": 14180.0, "status": "done"}, {"code": "a, b = map(int, input().split())\n\nprint((a - 1) * (b - 1))", "passed": true, "time": 0.14, "memory": 14188.0, "status": "done"}, {"code": "n, m = map(int, input().split())\nprint((n - 1) * (m - 1))", "passed": true, "time": 0.14, "memory": 14320.0, "status": "done"}, {"code": "n, m = list(map(int,input().split(\" \")))\nprint(((n - 1) * (m - 1)))\n", "passed": true, "time": 0.18, "memory": 14288.0, "status": "done"}, {"code": "n, m = map(int, input().split())\nprint((n-1)*(m-1))", "passed": true, "time": 0.18, "memory": 14200.0, "status": "done"}, {"code": "n, m = map(int, input().split())\n\nprint((n-1) * (m-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": 14212.0, "status": "done"}, {"code": "a, b = map(int, input().split())\na = a-1\nb = b-1\nprint(a*b)", "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.23, "memory": 14080.0, "status": "done"}, {"code": "n,m=map(int,input().split())\nprint((n-1)*(m-1))", "passed": true, "time": 0.22, "memory": 14320.0, "status": "done"}, {"code": "n, m = list(map(int, input().split()))\nprint(((n - 1) * (m - 1)))\n", "passed": true, "time": 0.22, "memory": 14172.0, "status": "done"}, {"code": "a,b=map(int,input().split())\nprint((a-1)*(b-1))", "passed": true, "time": 0.14, "memory": 14084.0, "status": "done"}, {"code": "n,m = map(int,input().split())\nprint((n-1)*(m-1))", "passed": true, "time": 0.14, "memory": 14108.0, "status": "done"}, {"code": "a, b = map(int, input().split())\nprint((a-1) * (b-1))", "passed": true, "time": 0.14, "memory": 14244.0, "status": "done"}, {"code": "n,m = map(int,input().split())\nprint((n-1)*(m-1))", "passed": true, "time": 0.15, "memory": 14052.0, "status": "done"}, {"code": "n,m =map(int,input().split())\nprint((n-1)*(m-1))", "passed": true, "time": 0.14, "memory": 14080.0, "status": "done"}, {"code": "N, M = map(int, input().split())\nprint((N-1)*(M-1))", "passed": true, "time": 0.23, "memory": 14080.0, "status": "done"}, {"code": "#n = int(input())\nn,m = map(int,input().split())\n#l = list(map(int,input().split()))\n#l = [list(map(int,input().split())) for i in range(n)]\nprint((m-1)*(n-1))", "passed": true, "time": 0.22, "memory": 14168.0, "status": "done"}, {"code": "m,n = map(int,input().split())\nprint((m-1)*(n-1))", "passed": true, "time": 0.24, "memory": 14028.0, "status": "done"}, {"code": "n, m= map(int, input().split())\nprint((n-1)*(m-1))", "passed": true, "time": 0.24, "memory": 14016.0, "status": "done"}, {"code": "n,m = list(map(int,input().split()))\nprint(((n-1)*(m-1)))\n", "passed": true, "time": 0.16, "memory": 14040.0, "status": "done"}, {"code": "a = input().split()\nb,c =  int(a[0]),int(a[1])\nprint((b-1)*(c-1))", "passed": true, "time": 0.27, "memory": 14168.0, "status": "done"}, {"code": "a, b = input().split()\n\nprint((int(a) - 1) * (int(b) - 1))", "passed": true, "time": 0.26, "memory": 14268.0, "status": "done"}, {"code": "n,m=map(int,input().split())\nprint((n-1)*(m-1))", "passed": true, "time": 0.15, "memory": 14088.0, "status": "done"}, {"code": "W, H = map(int, input().split())\nprint((W-1)*(H-1))", "passed": true, "time": 0.16, "memory": 14304.0, "status": "done"}, {"code": "N,M=map(int,input().split())\nprint((N-1)*(M-1))", "passed": true, "time": 0.14, "memory": 14080.0, "status": "done"}, {"code": "n,m=map(int,input().split())\nprint((n-1)*(m-1))", "passed": true, "time": 0.15, "memory": 14288.0, "status": "done"}, {"code": "n,m=map(int,input().split());print((n-1)*(m-1))", "passed": true, "time": 0.23, "memory": 14104.0, "status": "done"}, {"code": "n,m=map(int,input().split())\nprint((n-1)*(m-1))", "passed": true, "time": 0.21, "memory": 14188.0, "status": "done"}, {"code": "n, m = list(map(int, input().split()))\n\nprint(((n - 1) * (m - 1)))\n", "passed": true, "time": 0.15, "memory": 14220.0, "status": "done"}, {"code": "n, m = list(map(int, input().split()))\nprint(((n - 1) * (m - 1)))\n", "passed": true, "time": 0.15, "memory": 14264.0, "status": "done"}, {"code": "def iroha():\n    a, b = list(map(int, input().split()))\n    print(((a-1)*(b-1)))\n\ndef __starting_point():\n    iroha()\n\n\n__starting_point()", "passed": true, "time": 0.14, "memory": 14336.0, "status": "done"}, {"code": "n, m = map(int, input().split())\n\narea = (n - 1) * (m - 1)\nprint(area)", "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": 14072.0, "status": "done"}, {"code": "a,b = map(int,input().split())\nprint((a-1) * (b-1))", "passed": true, "time": 0.14, "memory": 14084.0, "status": "done"}, {"code": "a,b=input().split()\na=int(a)\nb=int(b)\nprint((a-1)*(b-1))", "passed": true, "time": 0.14, "memory": 14268.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": "n,m = [int(x) for x in input().split()]\nprint((n-1)*(m-1))", "passed": true, "time": 0.21, "memory": 14044.0, "status": "done"}, {"code": "a,b = map(int,input().split())\nprint((a-1) * (b-1))", "passed": true, "time": 0.19, "memory": 14288.0, "status": "done"}, {"code": "a,b=map(int,input().split())\nprint((a-1)*(b-1))", "passed": true, "time": 0.14, "memory": 14088.0, "status": "done"}, {"code": "#!/usr/bin/env python3\n\ndef main():\n    n, m = list(map(int, input().split()))\n    print(((n - 1) * (m - 1)))\n\n\ndef __starting_point():\n    main()\n\n__starting_point()", "passed": true, "time": 0.14, "memory": 14280.0, "status": "done"}, {"code": "n, m = list(map(int, input().split()))\nprint(((n-1)*(m-1)))\n", "passed": true, "time": 0.14, "memory": 14104.0, "status": "done"}, {"code": "n, m = map(int, input().split())\n\nif n == 1 or m == 1:\n    print(0)\nelse:\n    print((n - 1) * (m - 1))", "passed": true, "time": 0.14, "memory": 14328.0, "status": "done"}, {"code": "lst = input().split()\nprint((int(lst[0]) - 1) * (int(lst[1]) - 1))", "passed": true, "time": 0.14, "memory": 14208.0, "status": "done"}, {"code": "x,y =map(int,input().split())\nprint((x-1)*(y-1))", "passed": true, "time": 0.14, "memory": 14180.0, "status": "done"}, {"code": "'''\nABC069 A - K-City\nhttps://atcoder.jp/contests/abc069/tasks/abc069_a\n'''\nn, m = list(map(int, input().split()))\nans = (n-1)*(m-1)\nprint(ans)\n", "passed": true, "time": 0.15, "memory": 14244.0, "status": "done"}, {"code": "n, m = map(int, input().split())\n\nans = (n-1) * (m-1)\nprint(ans)", "passed": true, "time": 0.31, "memory": 14164.0, "status": "done"}, {"code": "n, m = map(int, input().split())\nprint((n - 1) * (m - 1))", "passed": true, "time": 0.14, "memory": 14240.0, "status": "done"}, {"code": "N,M = map(int,input().split())\nprint((N-1)*(M-1))", "passed": true, "time": 0.14, "memory": 14316.0, "status": "done"}, {"code": "a,b=map(int,input().split())\n\nprint((a-1)*(b-1))", "passed": true, "time": 0.14, "memory": 14040.0, "status": "done"}, {"code": "n, m = map(int, input().split())\nprint((n-1)*(m-1))", "passed": true, "time": 0.14, "memory": 14224.0, "status": "done"}, {"code": "n, m = list(map(int, input().split()))\n# D = list(map(int,input().split()))\n# S = input()\n# X1_list = [int(input()) for i in range(N)]\n# X2_list = [list(map(int,input().split())) for i in range(N)]\n\nprint(((n - 1) * (m - 1)))\n", "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": 14244.0, "status": "done"}]