#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
/* 고전적인 스타일의 전처리기를 이용한 상수
#define IN 1
#define OUT 0
*/
// // 조금 더 요즘 스타일
const int IN = 1;
const int OUT = 0;
// // 몇가지 경우를 구분하기 위한 나열형 열거형
// enum state { OUT, IN };
// typedef enum state State;
int main(void)
{
char c;
while (c = getchar())
{
if (EOF == c) break;
switch (c)
{
case 'a':
case 'b':
case 'c': putchar('A'); break;
case 'd':
case 'e':
case 'f': putchar('D'); break;
default: putchar(c);
}
}
return 0;
}
int main33333(void)
{
// 공백문자를 모두 없애고 따라서 출력
char c;
while (EOF != (c = getchar()))
{
// if ( isspace(c) ) continue;
if ( isspace(c) ) break;
putchar(c);
/*
if ( !isspace(c) )
putchar(c);
}
*/
}
return 0;
}
int main222222()
{
char c;
int nw = 0; // 단어 개수
int state = OUT;
while (EOF != (c = getchar()))
{
if ( isspace(c) ) state = OUT;
else if ( OUT == state )
{
state = IN;
++nw;
}
}
printf("%d\n", nw);
return 0;
}