There is a special calculator. When a number is input, the calculator will multiply the number by 2, then reverse the digits of the result. Finally, it will add 2 and display the final result. If you input a two-digit number and the final displayed result is 27, what was the initial input?