#include <stdio.h>#include <math.h>#define N 110int n,w,e,result;int main(){ int i,j,x,y,t1,t2,t3,t4; while (scanf("%d%d%d",&n,&w,&e) != EOF && n > 0) { if (w == e) { if (w == 0 || w == 100 * N) printf("%dn",n); else if (w % 100 == 0) printf("%dn",2 * n); else printf("%dn",n); break; } result = 0; for (i = 1;i <= n;i ++) for (j = 1;j <= n;j ++) { x = 100 * i - 100; y = 100 * j - 100; t1 = (e-w)*x - 100 * n * y + 100 * n * w; x = 100 * i; y = 100 * j - 100; t2 = (e-w)*x - 100 * n * y + 100 * n * w; x = 100 * i - 100; y = 100 * j; t3 = (e-w)*x - 100 * n * y + 100 * n * w; x = 100 * i; y = 100 * j; t4 = (e-w)*x - 100 * n * y + 100 * n * w; if (!((t1>0 && t2>0 && t3>0 && t4>0) || (t1<0 && t2<0 && t3<0 && t4<0))) result ++; } printf("%dn",result); } return 0;}