int main() { int first = 256; int second = 265; int third = first + second; if (third > 500) { third = third - 256; } else { third = third + 256; } return 0; }