#include <stdio.h>


int main() {
    int user,a,b,c,d;

    scanf("%d",&user);

    a = user % 10;
    b = user % 100;
    c = user % 1000;
    d = user;

    printf("%d",(a * 1000) + (b / 10 * 100) + ((c - b) / 100 * 10) + (d / 1000));

    
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: