//기초4-1. 단순 반복문
//import java.util.*;
//
//public class Main {
// public static void main(String[] args) {
// Scanner t = new Scanner(System.in);
//
// int n = t.nextInt();
// int sum = 0;
//
// for(int i = 1; i <= n; i++) {
// int m = t.nextInt();
// if(m%5==0) {
// sum+=m;
// }
// }
// System.out.println(sum);
// }
//} //1267 : n개의 수 중 5의 배수의 합
//import java.util.*;
//
//public class Main {
// public static void main(String[] args) {
// Scanner t = new Scanner(System.in);
//
// int a = t.nextInt();
// int sum = 0;
//
// for(int i = 1;; i++) {
// sum+= i;
// if(a <= sum) {
// System.out.println(i);
// break;
// }
// }
// }
//} //1080 : [기초-종합] 언제까지 더해야 할까?
//import java.util.*;
//
//public class Main {
// public static void main(String[] args) {
// Scanner t = new Scanner(System.in);
//
// int n = t.nextInt();
// int cnt = 0;
//
// for(int i = 0;i < n;i++) {
// int k = t.nextInt();
// if(k%2 == 0) {
// cnt++;
// }
//
// }
// System.out.println(cnt);
// }
//} //1268 : n개의 수 중 짝수의 개수
//import java.util.*;
//
//public class Main {
// public static void main(String[] args) {
// Scanner t = new Scanner(System.in);
//
// int n = t.nextInt();
// int k;
// for(int i = 1;;i++) {
// if(i*i > n ) {
// k=n-(i-1)*(i-1);
// System.out.println(k + " " +(i-1));
// break;
// }
// }
// }
//} //1282 : 제곱수 만들기
/*(While문)
for(시작식 ; 조건식; 증감식) {
}
시작식;
while(조건식) {
증감식;
}
import java.util.*;
public class Main{
public static void main(String[] args) {
// int n=10;
// for(int i=n;i>=1;i--)
// System.out.println(i);
//
// while(n>=1) {
// System.out.println(n--);
// }
int n=452; // 45 4 0
int cnt=0;
while(n!=0) {
System.out.print(n%10);
cnt++;
n/=10;
}
}
}
*/
//import java.util.*;
//
//public class Main {
// public static void main(String[] args) {
// Scanner t = new Scanner(System.in);
//
// while(true) {
// int n = t.nextInt();
// if(n == 0)
// break;
// System.out.println(n);
// }
// }
//} //0 입력될 때까지 무한 출력하기1
//import java.util.*;
//
//public class Main {
// public static void main(String[] args) {
// Scanner t = new Scanner(System.in);
//
// int n = t.nextInt();
// int sum = 0;
//
// while(n > 0) {
// if(n%2 == 0) {
// sum+=n;
// }
// n--;
// }
// System.out.println(sum);
// }
//} // 짝수 합 구하기
//1278
//4041(while)