import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringTokenizer(br.readLine(), " ");
int sum = 0;
for(int i =0; i<5; i++) {
int a = Integer.parseInt(st.nextToken());
sum += Math.pow(a, 2);
}
System.out.println(sum%10);
}
}
'백준' 카테고리의 다른 글
10869 사칙연산 (0) | 2021.10.18 |
---|---|
5585 거스름돈 (0) | 2021.10.14 |
1546 평균 (0) | 2021.10.12 |
2438 별찍기 (0) | 2021.10.12 |
1918 후위 표기식 (0) | 2021.09.30 |