You are given a string with three characters. The first and third characters are numbers between 1 and 9, and the middle character is 'x'. Your task is to multiply the two numbers together and print the result.
Input: '3x8'
Output: 24
Input: '9x9'
Output: 81