print(1^eval("0b%s001**.5%%1>0"%input()))*50