Raise Both Hands

ABC 370

Problem 46 of 50

Easy

What to do

You need to check which hand Snuke is raising to decide if he wants to eat takoyaki. If he raises only his left hand, he wants to eat it, and we print 'Yes'. If he raises only his right hand, we print 'No'. If he raises both hands or none, we print 'Invalid'.

Key Concepts

if-statements input and output conditional logic

Examples

Input: 1, 0

Output: Yes

Input: 0, 1

Output: No

Tips for Beginners

  • Focus on understanding the logic, not memorizing syntax
  • Use print statements to debug your code
  • Don't worry about input parsing - the function handles that for you
  • If stuck, try writing out your solution on paper first

Python Editor

Loading Python...