checked Inputting 1 2 3 in different orders, program is working correctly