1)The digits are all different.

2)When each digit is squared and added together the number is the same as the number formed by the 2nd and 3rd digits in the number.

3)When the number formed by the last two digits is squared then added to (the first digit squared and added to itself) it is the same as the original number.

How many different three digit numbers are there that fit the criteria?