#0002D1

Pitagora

Mirko and Dario are detained in cave.On floor they were found 3 papers.On this paper are write 3 number.You must find a passage through the gate and print through the door as it may take.Required is the number on the wall form A^2+B^2=C^2


InputIn the next 3 lines of the standard input contains 3 numbers A, B, [] where A, B, C <= 1000.

OutputYou should print how many doors can Dario and Mirko can open.


Input
[c]3 4 5
4 10 8
20 12 16

Output
2

Submit solution

Coming later

The grading service will be connected in a later migration step. You can inspect the task and your previous results now.