/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ import java.util.Scanner; /** * * @author drevenak3 */ public class More { /** * @param args the command line arguments */ public static void main(String[] args) { Scanner scan = new Scanner(System.in); String line; while(scan.hasNext()){ line=scan.nextLine(); int len=line.length(); if(line.equals("1")){ System.out.println("110"); }else if(line.equals("0")){ System.out.println("1"); }else{ if(line.charAt(len-1)=='0'){ System.out.println(line.substring(0, len-1)+"1"); }else{ if(line.charAt(len-2)=='1'){ if(line.equals("11")){ System.out.println("0"); }else{ System.out.println(line.substring(0, len-2)+"00"); } }else{ System.out.println("11"+inv(line)); } } } } } private static String inv(String str){ StringBuilder s=new StringBuilder(); for (int i = 0; i < str.length(); i++) { if(str.charAt(i)=='0') s.append('1'); else s.append('0'); } return s.toString(); } }