fun f (a: Long, b: Long): Boolean = if (a==0L || b==0L) true else when { a and 2L==1L&&b and 2L==1L -> false a and 2L==0L&&b and 2L==1L -> f(a shr 1,b.dec()) a and 2L==1L&&b and 2L==0L -> f(a.dec(),b shr 1) else -> f(a shr 1,b.dec()) || f(a.dec(),b shr 1) } fun main(args: Array){ val (a,b) = readLine()!!.split(' ').map(String::toLong) println(if (f(a,b)) "Yes" else "No") }