#include <iostream>
int sum(int a, int b, int c=0, int d=0)
{
return a + b + c + d;
}
int main(){
std::cout << sum(4, 5, 2, 3) << '\n' ;
std::cout << sum(100, -1) << '\n' ;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKaW50IHN1bShpbnQgYSwgaW50IGIsIGludCBjPTAsIGludCBkPTApCnsKCXJldHVybiBhICsgYiArIGMgKyBkOwp9CgppbnQgbWFpbigpewoJc3RkOjpjb3V0IDw8IHN1bSg0LCA1LCAyLCAzKSA8PCAnXG4nIDsKCXN0ZDo6Y291dCA8PCBzdW0oMTAwLCAtMSkgPDwgJ1xuJyA7Cn0=