/*
#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("Hello world!\n");
return 0;
}
*/
/*
#include <stdio.h>
int main ()
{
int year,mon,day, a;
scanf("%d %d %d",&year , &mon, &day);
a = year - mon + day;
if(!(a%=10))
{
printf("대박");
}
else
{
printf("그럭저럭");
}
return 0;
}
*/
/*
#include <stdio.h>
int main ()
{
int c , a,b;
scanf("%d",&c);
a = c/10;
b = c%10;
c = (b*10 + a) *2;
if(c >=100)
{
c = c -100;
}
printf("%d\n",c);
if(c <=50)
{
printf("GOOD");
}
else
{
printf("OH MY GOD");
}
return 0;
}
*/
/*
#include <stdio.h>
int main ()
{
int time, score1 ,score2;
scanf("%d %d %d",&time, &score1, &score2);
time = 90 - time;
if( time != 0)
{
score1=1+score1;
if(time >=5)
{
score1 = score1 + (time-1)/5;
}
}
if(score1>score2)
{
printf("win");
}
else if(score1 == score2)
{
printf("same");
}
else
{
printf("lose");
}
return 0;
}
*/
/*
#include <stdio.h>
int main ()
{
double s, w;
scanf("%lf %lf" , &s, &w);
double r,t;
if(s<150)
{
t=s-100;
}
else if(s<160)
{
t=(s-150)/2+50;
}
else
{
t=(s-100)*0.9;
}
r = (w - t)*100/t;
if(r<=10)
{
printf("정상");
}
else if(r<=20)
{
printf("과체중");
}
else if(20<r)
{
printf("비만");
}
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int r;
scanf("%d",&r);
if(r==10)
{
printf("정상");
}
else if(r==20)
{
printf("과체중");
}
else if(r==30)
{
printf("비만");
}
else
{
printf("고도비만");
}
switch(r)
{
case 10 : printf("정상"); break;
case 20 : printf("과체중"); break;
case 30 : printf("비만"); break;
default : printf("고도비만"); break;
}
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int a;
scanf("%d",&a);
switch(a)
{
case 12:
case 1:
case 2: printf("winter"); break;
case 3:
case 4:
case 5: printf("spring"); break;
case 6:
case 7:
case 8: printf("summer"); break;
case 9:
case 10:
case 11: printf("fall"); break;
}
}
#include <stdio.h>
int main()
{
int r;
scanf("%d",&r);
switch(r/10)
{
case 10 :
case 9 : printf("A"); break;
case 8 : printf("B"); break;
case 7 : printf("C"); break;
case 6 : printf("D"); break;
default : printf("F"); break;
}
return 0;
}
#include <stdio.h>
int main ()
{
int a, b, c, d, e;
scanf("%d %d %d %d",&a, &b, &c, &d);
e = a + b + c + d;
switch(e)
{
case 1:printf("도"); break;
case 2:printf("개"); break;
case 3:printf("걸"); break;
case 4:printf("윷"); break;
default :printf("모"); break;
}
if(e == 1)
{
printf("도");
}
else if(e == 2)
{
printf("개");
}
else if(e == 3)
{
printf("걸");
}
else if(e == 4)
{
printf("윷");
}
else
{
printf("모");
}
return 0;
}
*/
/*
반복문
for
while
do-while
i++ i=i+1
i-- i=i-1
*/
/*
#include <stdio.h>
int main ()
{
int i; //iteration 회차 횟수
//for(시작식;조건식;증감식)
for(i=5;i<=9;i++)
{
printf("%d ",i);
}
for(i=8;i>=1;i--)
{
printf("%d ",i);
}
return ;
}
*/
/*
#include <stdio.h>
int main ()
{
int i;
for(i=1;i<=100;i++)
{
printf("%d ",i);
} return ;
}
*/
/*
#include<stdio.h>
int main()
{
int n;
scanf("%d", &n);
for(int i = 1; i <= n; i++)
{
printf("%d ",i);
}
return 0;
}
int main()
{
int n;
scanf("%d", &n);
for(int i = 1; i <= n; i++)
{
printf("%d ",i);
}
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int n,g,i;
scanf("%d %d", &g, &n);
if(g<n)
{
for(i = g; i <= n; i++)
{
printf("%d ",i);
}
}
else
{
for(i = n; i <= g; i++)
{
printf("%d ",i);
}
}
return 0;
}
*/
/*
#include<stdio.h>
int main()
{
int a,b;
scanf("%d %d", &a, &b);
for(int i = a; i <= b; i++)
{
if(i%2 != 0)
{
printf("%d ",i);
}
}
return 0;
}
*/