import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int x = sc.nextInt(); StringBuilder sb = new StringBuilder(); while(true){//从最后一步往前逆推。正推时,每次都是用了上一次所有的蛋翻番。 if(x == 1){ sb.append("2"); break; }else if(x == 2) { sb.append("3"); break; }else if(x%2 == 0){ sb.append("3"); x = (x - 2)/2; }else if(x%2 == 1){ sb.append("2"); x = (x - 1)/2; } } sb = sb.reverse(); System.out.println(sb); } }