Ответ: На python 3:a = int(input())b = int(input())c = int(input())if a == b == c: print(«P = «,a*3)else: print(«P = 0»)