#include <ctype.h>
#include <stdio.h>
#include <string.h>

void magic(char text[]);

int main() {
    printf("Enter string: ");
    char text[20];
    scanf("%19s", text);

    printf("Original string: %s\n", text);
    magic(text);
    printf("Modified string: %s\n", text);

    return 0;
}

void magic(char text[]) {
    for (size_t index = 0, length = strlen(text); index < length; index++) {
        if (isupper(text[index])) {
            text[index] = tolower(text[index]);
        } else {
            text[index] = '#';
        }
    }
}
