#!/usr/bin/perl use strict; my $ln = ; chomp $ln; my ( $n, $m ) = split( ' ', $ln ); print $n * $m - 1;