def get_num_of_characters(input_str):
    count = 0
    for char in input_str:
        count += 1
    return count

def output_without_whitespace(input_str):
    print("String with no whitespace: ", end="")
    for char in input_str:
        if char != ' ' and char != '\t':
            print(char, end="")
    print()

if __name__ == '__main__':
    # Type your code here
    print("Enter a sentence or phrase:")
    print()  # Blank line after prompt
    user_input = input()
    print(f"You entered: {user_input}")
    print()  # Blank line after "You entered:"
    
    num_chars = get_num_of_characters(user_input)
    print(f"Number of characters: {num_chars}")
    
    output_without_whitespace(user_input)