ProgramID- 9227
SkillRack
Product - Last Digit & First Digit

The program must accept two integers X and Y as the input. The program must print the product of the last digit of X and the first digit of Y as the output.

Example Input/Output 1:
Input:
514 2004

Output:
8

Example Input/Output 2:
Input:
56 375

Output:
18


Max Execution Time Limit: 1000 millisecs