Under construction

Still being built. Things may change

Stone Tag Game

Time limit1sMemory limit512 MB

Summary
Given black stone positions on a grid, decide whether Yuto's white stone leaves the board first or Platina's black stones catch it under alternating moves.
Level

Medium7 of 10

Topics
Game theory, Math, Greedy
Solved
No attempts yet

Problem

Yuto and Platina want to play a stone tag game. The game takes place on a two-dimensional coordinate plane, but only the part where both the x and y coordinates are at most 10910^9 is used as the board.

There is one white stone and NN black stones on the board. At the start, the white stone is at (0,0)(0, 0), and the ii-th black stone is at (xi,yi)(x_i, y_i).

On his turn, Yuto moves the white stone one cell to (x+1,y)(x+1, y) or (x,y+1)(x, y+1) from its current position (x,y)(x, y).

On her turn, Platina picks any black stone at (x,y)(x, y) and moves it one cell to (x−1,y)(x-1, y) or (x,y−1)(x, y-1).

Yuto goes first, and the two players alternate turns. If the white stone leaves the board, Yuto wins. If the white stone and a black stone occupy the same cell before that happens, Platina wins.

Both players can play perfectly, but the board is so large that they want to know the winner in advance. Find out who wins the game.

Input

The first line contains the number of black stones NN. Each of the next NN lines contains the position xix_i and yiy_i of the ii-th black stone.

Output

Print the name of the player who wins the game. The first letter of the name is capitalized.

Constraints

  • 1≤N≤300,0001 \le N \le 300,000
  • 0≤xi,yi≤1090 \le x_i, y_i \le 10^9
  • (xi,yi)≠(0,0)(x_i, y_i) \ne (0, 0)

Examples3

  1. Example 1

    Input
    1
    0 1
    
    Expected output
    Yuto
    
  2. Example 2

    Input
    2
    2 3
    3 2
    
    Expected output
    Platina
    
  3. Example 3

    Input
    2
    0 2
    2 1
    
    Expected output
    Platina