Олимпиадный тренинг

Задача 32945. Conditioning - 2


Write a program that prints 1 if the given statement is true and 0 otherwise.

the product of natural numbers a and b is a multiple of c

EXAMPLE: (the input is three numbers separated by a space)
entry: 12 24 3
output: 1

EXAMPLE:
entry: 27 24 5
output: 0