#include <bits/stdc++.h>

using namespace std;
using ll = long long;
using ld = long double;

//#define int long long
//signed main(){
int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    int n;
    cin >> n;
    if(n==1){
        cout << "Hello World" << "\n";
        return 0;
    }
    else{
        int a,b;
        cin >> a >> b;
        cout << a+b << "\n";
        return 0;
    }
}
#include<bits/stdc++.h>
#pragma GCC target("avx2")
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
using namespace std;
typedef long long ll;
ll gcd(ll x,ll y){
  if(x%y==0) return y;
  else return gcd(y,x%y);
}
int main(){
  ll A,B,C,D,i,ans = 1;scanf("%lld%lld",&A,&B);
  C = gcd(A,B);D = C;
  for(i=2;i*i<=C;i++){
    if(D%i==0){
      ans++;
      while(D%i==0) D /= i;
    }
  }
  if(D != 1) ans++;
  printf("%lld\n",ans);
}