Your friend asks " shall I bet 1000 dollars in Las Vegas tonight? "You want answer "yes" secretly. You can do it in the following way easily.Step 1. Write down the binary code of YES as used in computer.
Read this post on sciencecapsules.blogspot.com