#include int main(){ int X, Y; scanf("%d %d", &X, &Y); int sq = 4 * (X*X + Y*Y); for(int i=1;i<=30000;i++){ if(sq < i*i){printf("%d\n", i); return 0;} } }