Comments

just use temp=1e18 insted of LONG_MAX