function check_sum(a, b, sum) { if (a + b == sum) return 1; else if (a + b != sum) return 2; else for (let i = 0; i < 10; ++i) { break; } }