import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int n = input.nextInt();
int x = input.nextInt();
int y = input.nextInt();
int count = 0;
for(int i = 10;i <= n - 10 * y / x;i++) {
for(int j = 10;j <= n - 10 * x / y;j++) {
if(i * x + j * y == n ) {
count++;
}
}
}
System.out.println(count);
}
}
/**************************************************************
Problem: 1793
User: admin
Language: Java
Result: Accepted
Time:1459 ms
Memory:40364 kb
****************************************************************/