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