2UP3DOWN

AtCoder
IDabc326_a
Time2000ms
Memory256MB
Difficulty
Takahashi is in a building with $100$ floors. He uses the stairs for moving up two floors or less or moving down three floors or less, and uses the elevator otherwise. Does he use the stairs to move from floor $X$ to floor $Y$? ## Constraints * $1 \leq X,Y \leq 100$ * $X \neq Y$ * All input values are integers. ## Input The input is given from Standard Input in the following format: $X$ $Y$ [samples]
Samples
Input #1
1 4
Output #1
No

The move from floor $1$ to floor $4$ involves going up three floors, so Takahashi uses the elevator.
Input #2
99 96
Output #2
Yes

The move from floor $99$ to floor $96$ involves going down three floors, so Takahashi uses the stairs.
Input #3
100 1
Output #3
No
API Response (JSON)
{
  "problem": {
    "name": "2UP3DOWN",
    "description": {
      "content": "Takahashi is in a building with $100$ floors. He uses the stairs for moving up two floors or less or moving down three floors or less, and uses the elevator otherwise. Does he use the stairs to move f",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc326_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "Takahashi is in a building with $100$ floors.\nHe uses the stairs for moving up two floors or less or moving down three floors or less, and uses the elevator otherwise.\nDoes he use the stairs to move f...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments