accept 1 and 2 as an input and returns decimal number