#include <stdio.h>
int main() {
int buddhistYear, christianYear;
printf("Enter Buddhist Era year (พ.ศ.): "); scanf("%d", &buddhistYear
);
christianYear = buddhistYear - 543;
printf("The year in Anno Domini (ค.ศ.) is: %d\n", christianYear
);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpIHsKICAgIGludCBidWRkaGlzdFllYXIsIGNocmlzdGlhblllYXI7CgogICAgcHJpbnRmKCJFbnRlciBCdWRkaGlzdCBFcmEgeWVhciAo4LieLuC4qC4pOiAiKTsKICAgIHNjYW5mKCIlZCIsICZidWRkaGlzdFllYXIpOwoKICAgIGNocmlzdGlhblllYXIgPSBidWRkaGlzdFllYXIgLSA1NDM7CgogICAgcHJpbnRmKCJUaGUgeWVhciBpbiBBbm5vIERvbWluaSAo4LiELuC4qC4pIGlzOiAlZFxuIiwgY2hyaXN0aWFuWWVhcik7CgogICAgcmV0dXJuIDA7Cn0=