#!/bin/bash

typeset -i A=0
typeset -i B=0
read A B
if [[ $A -gt 9 ]]; then
        echo "-1"
else
        if [[ $B -gt 9 ]] ; then
                echo "-1"
        else
                echo $(($A * $B))
        fi

fi
