#include int main() { int N,x1,x2,x3; scanf("%d%ld%ld%ld",&N,&x1,&x2,&x3); printf("%lf\n",x1+x2+x3); }