# -*- coding: utf-8 -*- X = int(input()) print((X + 1) % 2)