GET_NUMBER = gets.to_i answer = GET_NUMBER / 3 * 2 answer += GET_NUMBER / 5 * 2 puts answer