import java.io.File;
import java.io.IOException;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Deque;
import java.util.List;
import java.util.Scanner;

public class Main {
 
	public static void main(String[] args) throws IOException {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		String N = sc.next();
		char c = N.charAt(0);
		boolean allsmall = true;
		
		for(int i = 1; i < N.length(); i++){
			if(N.charAt(i) > c) allsmall = false;
		}
		
		for(int i = 0; i < N.length(); i++) System.out.print(allsmall?""+c:""+(char)(c+('2'-'1')));
		System.out.println();
	}
} import java.io.File; File java.io import java.io.IOException; IOException java.io import java.util.ArrayDeque; ArrayDeque java.util import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util import java.util.Comparator; Comparator java.util import java.util.Deque; Deque java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
 
	public static void main(String[] args) throws IOException {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		String N = sc.next();
		char c = N.charAt(0);
		boolean allsmall = true;
		
		for(int i = 1; i < N.length(); i++){
			if(N.charAt(i) > c) allsmall = false;
		}
		
		for(int i = 0; i < N.length(); i++) System.out.print(allsmall?""+c:""+(char)(c+('2'-'1')));
		System.out.println();
	}
} Main public static void main(String[] args) throws IOException {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		String N = sc.next();
		char c = N.charAt(0);
		boolean allsmall = true;
		
		for(int i = 1; i < N.length(); i++){
			if(N.charAt(i) > c) allsmall = false;
		}
		
		for(int i = 0; i < N.length(); i++) System.out.print(allsmall?""+c:""+(char)(c+('2'-'1')));
		System.out.println();
	} main {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		String N = sc.next();
		char c = N.charAt(0);
		boolean allsmall = true;
		
		for(int i = 1; i < N.length(); i++){
			if(N.charAt(i) > c) allsmall = false;
		}
		
		for(int i = 0; i < N.length(); i++) System.out.print(allsmall?""+c:""+(char)(c+('2'-'1')));
		System.out.println();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String N = sc.next(); N sc.next() sc.next sc char c = N.charAt(0); c N.charAt(0) N.charAt N 0 boolean allsmall = true; allsmall true for(int i = 1; i < N.length(); i++){
			if(N.charAt(i) > c) allsmall = false;
		} int i = 1; int i = 1; i 1 i < N.length() i N.length() N.length N i++ i++ i {
			if(N.charAt(i) > c) allsmall = false;
		} {
			if(N.charAt(i) > c) allsmall = false;
		} if(N.charAt(i) > c) allsmall = false; N.charAt(i) > c N.charAt(i) N.charAt N i c allsmall = false allsmall false for(int i = 0; i < N.length(); i++) System.out.print(allsmall?""+c:""+(char)(c+('2'-'1'))); int i = 0; int i = 0; i 0 i < N.length() i N.length() N.length N i++ i++ i System.out.print(allsmall?""+c:""+(char)(c+('2'-'1'))); System.out.print(allsmall?""+c:""+(char)(c+('2'-'1'))) System.out.print System.out System System.out allsmall?""+c:""+(char)(c+('2'-'1')) allsmall ""+c "" c ""+(char)(c+('2'-'1')) "" (char)(c+('2'-'1')) c ('2'-'1') '2' '1' System.out.println() System.out.println System.out System System.out String[] args args public class Main {
 
	public static void main(String[] args) throws IOException {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		String N = sc.next();
		char c = N.charAt(0);
		boolean allsmall = true;
		
		for(int i = 1; i < N.length(); i++){
			if(N.charAt(i) > c) allsmall = false;
		}
		
		for(int i = 0; i < N.length(); i++) System.out.print(allsmall?""+c:""+(char)(c+('2'-'1')));
		System.out.println();
	}
} public class Main {
 
	public static void main(String[] args) throws IOException {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		String N = sc.next();
		char c = N.charAt(0);
		boolean allsmall = true;
		
		for(int i = 1; i < N.length(); i++){
			if(N.charAt(i) > c) allsmall = false;
		}
		
		for(int i = 0; i < N.length(); i++) System.out.print(allsmall?""+c:""+(char)(c+('2'-'1')));
		System.out.println();
	}
} Main
import java.io.File;
import java.io.IOException;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Deque;
import java.util.List;
import java.util.Scanner;

public class Main {
 
	public static void main(String[] args) throws IOException {
		//File file = new File("input.txt");
		//Scanner sc = new Scanner(file);
		
		Scanner sc = new Scanner(System.in);
		
		String N = sc.next();
		char c = N.charAt(0);
		boolean allsmall = true;
		
		for(int i = 1; i < N.length(); i++){
			if(N.charAt(i) > c) allsmall = false;
		}
		
		for(int i = 0; i < N.length(); i++) System.out.print(allsmall?""+c:""+(char)(c+('2'-'1')));
		System.out.println();
	}
}