take whole number from input and store as fraction