#include using namespace std; int main() { string A; cin>>A; A.back()=1-(A.back()-'0')+'0'; cout<