#include using namespace std; int main() { int n; cin>>n; vector ch(n+1); ch[0]=ch[n]=1; for (int i=0;i<2;i++) { int m; cin>>m; int sum=0; for (int i=0;i>a; sum+=a; ch[sum]=1; } } cout<