/*
#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("Hello world!\n");
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int n,i,j;
scanf("%d",&n);
for(j=0;j<=11;j++){
if((n-4)%12==j){
printf("%c",j+65);
}
}
for(i=0;i<=9;i++){
if((n-4)%10==i){
printf("%d",i);
}
}
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int h,m,t,t1=0;
scanf("%d %d",&h,&m);
scanf("%d",&t);
if(m+t<60)
{
printf("%d %d",h,m+t);
}
else
{
t1=t/60;
t=t%60;
h=h+t1;
m=m+t;
if(m>60)
{
h++;
m=m-60;
}
if(h>=24)
{
h = h%24;
}
printf("%d %d",h,m);
}
return 0;
}
*/
/*
#include <Stdio.h>
#define SIZE 5
int stack[SIZE];
int top;
int isFull()
{
if(top==SIZE-1){
return 1;
}
else{
return 0;
}
}
int isEmpty()
{
if(top==-1){
return 1;
}
else{
return 0;
}
}
void init()
{
top=-1;
}
void push(int data)
{
if(isFull())
{
printf("stack is full!!!!!!!\n");
return ;
}
top++;
stack[top]=data;
}
void pop()
{
if(isEmpty())
{
printf("stack is empty!!!!!!!!!\n");
return ;
}
printf("%d\n",stack[top]);
stack[top]=0;
top--;
}
void view()
{
int i;
printf("=========================\n");
for(i =0; i<=top ; i++)
{
printf("%d ",stack[i]);
}
printf("\n=========================\n");
}
int main()
{
init();
int n,data;
while(1)
{
printf("1.push 2.pop 3.view : ");
scanf("%d",&n);
if(n==1)
{
printf("데이터를 입력하세요! : ");
scanf("%d",&data);
push(data);
}
else if(n==2)
{
pop();
}
else
{
view();
}
}
}
*/