Not Another Pet Fair

Limite di tempo: 5 sec
/
Limite di memoria: 128 MB
Input/output: stdin / stdout
Punteggio massimo: 1000