Happy Birthday! 4

AtCoder
IDabc433_a
Time2000ms
Memory256MB
Difficulty
You are given positive integers $X,Y,Z$. Takahashi and Aoki are currently $X$ years old and $Y$ years old, respectively. Takahashi and Aoki age by $1$ year simultaneously on every January $1$st. Determine whether there is a moment in the future (including this year) when Takahashi's age becomes exactly $Z$ times Aoki's age. ## Constraints * $1\le X,Y \le 100$ * $2\le Z\le 10$ * All input values are integers. ## Input The input is given from Standard Input in the following format: $X$ $Y$ $Z$ [samples]
Samples
Input #1
44 20 2
Output #1
Yes

Four years from now, Takahashi will be $48$ years old and Aoki will be $24$ years old, so Takahashi's age will be exactly twice Aoki's age. Thus, output `Yes`.
Input #2
28 10 3
Output #2
No

There will never be a moment when Takahashi's age becomes exactly three times Aoki's age. Thus, output `No`.
Input #3
50 5 10
Output #3
Yes

Currently, Takahashi's age is exactly $10$ times Aoki's age.
Note that you need to determine whether there will be such a moment in the future including this year.
Input #4
1 100 2
Output #4
No
API Response (JSON)
{
  "problem": {
    "name": "Happy Birthday! 4",
    "description": {
      "content": "You are given positive integers $X,Y,Z$. Takahashi and Aoki are currently $X$ years old and $Y$ years old, respectively. Takahashi and Aoki age by $1$ year simultaneously on every January $1$st. Deter",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc433_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "You are given positive integers $X,Y,Z$.\nTakahashi and Aoki are currently $X$ years old and $Y$ years old, respectively.\nTakahashi and Aoki age by $1$ year simultaneously on every January $1$st.\nDeter...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments