let s = readLine()! var k = 1, n = 0 for i in s.reversed(){ n += Int(String(i))! * k k *= 2 } while n % 2 == 0{ n /= 2 } if n == 1{ print("No") }else{ var n1 = n + 1, n2 = n - 1 while n1 % 2 == 0{ n1 /= 2 } while n2 % 2 == 0{ n2 /= 2 } if n1 == 1 || n2 == 1{ print("Yes") }else{ print("No") } }