import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int[] arr = new int[30];
int[] ans = new int[2];
int q = 0;
for(int i = 0; i < 28; i++)
{
int n = Integer.parseInt(br.readLine());
arr[n-1] = n;
}
for(int i = 0; i < 30; i++)
{
if(arr[i] == 0)
{
ans[q] = i;
q++;
}
}
for(int i = 0; i < ans.length; i++)
{
System.out.println(ans[i] + 1);
}
}
}
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int[] arr = new int[30];
for(int i = 0; i < 28; i++)
{
int n = Integer.parseInt(br.readLine());
arr[n-1] = n;
}
for(int i = 0; i < arr.length; i++)
{
if(arr[i] == 0)
{
System.out.println(i+1);
}
}
}
}
문제 이해를 잘 못해서 이상하게 풀었다가 다시 풀었다.