#include<stdio.h>
#include<stdlib.h>
#include<ctype.h>

void swap(float *a,float *b){
    int temp = *a;
    *a = *b;
    *b = temp;
}
int main(){
    int d1, d2;
    void (*fp)(int *, int *)= swap;
    if(scanf("%d", &d1) !=1 || scanf("%d", &d2)!=1){
        printf("Invalid input");
        return 0;
    }
    fp(&d1, &d2);
    printf("After swap: Distance 1= %d meters Distance 2=%d meters", d1,d2);
    return 0;
}