#include <stdio.h>
int main(void) {
unsigned char d1, d2, d3, d4;
scanf("%hhu.%hhu.%hhu.%hhu", &d1
, &d2
, &d3
, &d4
); printf("%hhu.%hhu.%hhu.%hhu",d1
,d2
,d3
,d4
); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CiAgICB1bnNpZ25lZCBjaGFyIGQxLCBkMiwgZDMsIGQ0OwogICAgcHJpbnRmKCJHaXZlIGEgdmFsaWQgaXA6ICIpOwogICAgc2NhbmYoIiVoaHUuJWhodS4laGh1LiVoaHUiLCAmZDEsICZkMiwgJmQzLCAmZDQpOwogICAgcHJpbnRmKCIlaGh1LiVoaHUuJWhodS4laGh1IixkMSxkMixkMyxkNCk7CiAgICByZXR1cm4gMDsKfQ==