#include <bits/stdc++.h>
const int INF = 2147483647;
const int MOD = 1000000007;
const long long INF64 = 9223372036854775807;
const long double EPS = 1e-7;
using namespace std;
int main() {
  string s =
      "010100000111111101010010010011010101110110110111010011101100100000000010"
      "100011011000000100101100011111000101011000111000011111010001000111111111"
      "11010000010010101010111001000010100101100001101011101101011011001000110"
      "1";
  for (int i = 0; i < 216; i++) printf(s[i] == '1' ? "YES\n" : "NO\n");
  return 0;
}
