#include <stdio.h>
#include <wctype.h>

int main() {
  char sent;
  while (1) {
    scanf("%c", &sent);
    if (iswupper(sent) == 1)
      printf("%c", towlower(sent));
    else
      printf("%c", towupper(sent));
  }
  return 0;
}

#include <ctype.h>
#include <stdio.h>
#include <wctype.h>

int main() {
  char sent[1200];
  int x;
  gets(sent);
  for (x = 0; sent[x] != '\\0'; x++) {
    if (isupper(sent[x])) {
      sent[x] = tolower(sent[x]);
    } else {
      sent[x] = toupper(sent[x]);
    }
  }
  puts(sent);
  return 0;
}


#include <ctype.h>
#include <iostream>
#include <stdio.h>
using namespace std;

int main(void) {
  while (char s = getchar()) {
    if (s == '\\0') {
      break;
    } else if (isspace(s)) {
      printf(" ");
    } else if (s == '.') {
      printf("%c", s);
    } else if (isupper(s)) {
      s = tolower(s);
      printf("%c", s);
    } else {
      s = toupper(s);
      printf("%c", s);
    }
  }
  return 0;
}

#include <ctype.h>
#include <iostream>
#include <stdio.h>
using namespace std;

int main(void) {
  char s;
  while ((s = getchar()) != '\\n' && s != EOF) {
    if (isspace(s)) {
      printf(" ");
    } else if (isupper(s)) {
      s = tolower(s);
      printf("%c", s);
    } else if (islower(s)) {
      s = toupper(s);
      printf("%c", s);
    } else {
      printf("%c", s);
    }
  }
  putchar('\\n');
  return 0;
}


#include <cctype>
#include <cstdio>
#include <iostream>

using namespace std;

int main() {
  char x;
  for (;;) {
    cin >> x;

    if (x == '/0')
      break;

    if (islower(x) == 0) {
      cout << char(tolower(x));
    } else if (islower(x) != 0) {
      cout << char(toupper(x));
    } else {
      cout << x;
    }
  }

  cout << endl;

  return 0;
}

#include <cctype>
#include <cstdio>
#include <iostream>

using namespace std;

int main() {
  char x;
  for (;;) {
    scanf("%c", &x);

    if (x == '\\n')
      break;

    if (islower(x) == 0) {
      cout << char(tolower(x));
    } else if (islower(x) != 0) {
      cout << char(toupper(x));
    } else {
      cout << x;
    }
  }

  cout << endl;

  return 0;
}


#include <algorithm>
#include <cstdio>
#include <iostream>
#include <string>
using namespace std;

int main() {
  char tgt;
  while (1) {
    cin >> tgt;
    if ((tgt >= 'a') && (tgt <= 'z')) {
      printf("%c", tgt - 32);
    } else if ((tgt >= 'A') && (tgt <= 'Z')) {
      printf("%c", tgt + 32);
    } else {
      printf("%c", tgt);
    }
    if (tgt == '\\n') {
      break;
    }
  }
}

#include <algorithm>
#include <bitset>
#include <cctype>
#include <climits>
#include <cmath>
#include <cstdio>
#include <deque>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;

int main() {
  for (char c; (c = getchar()) != '\\n';) {
    if (c >= 65 && c <= 90)
      cout << (char)(c + 32);
    else if (c >= 97 && c <= 122)
      cout << (char)(c - 32);
    else
      cout << c;
  }
  cout << endl;
  return 0;
}


#include <iostream>
using namespace std;
#include <cctype>

int main() {
  char ch;
  while (1) {
    cin >> ch;
    if (islower(ch))
      cout << (char)toupper(ch);
    else
      cout << (char)tolower(ch);
    if (ch == '\\n')
      break;
  }
  cout << endl;
  return 0;
}

#include <iostream>
using namespace std;
#include <cctype>
#include <stdio.h>

int main() {
  char ch;
  while (1) {
    scanf("%c", &ch);
    if (islower(ch))
      cout << (char)toupper(ch);
    else
      cout << (char)tolower(ch);
    if (ch == '\\n')
      break;
  }
  return 0;
}


#include <iostream>

using namespace std;

const int dif = 'A' - 'a';

int main() {
  string str;
  bool isFirst = true;
  for (;;) {
    cin >> str;

    for (int i = 0; i < static_cast<int>(str.size()); i++) {
      if ('A' <= str[i] && str[i] <= 'Z') {
        str[i] -= dif;
      }
    }

    if (isFirst && 'a' <= str[0] && str[0] <= 'z') {
      str[0] += dif;
      isFirst = false;
    }

    cout << str;
    if (str[str.size() - 1] == '.') {
      cout << endl;
      return 0;
    } else {
      cout << ' ';
    }
  }
}

#include <iostream>

using namespace std;

const int dif = 'A' - 'a';

int main() {
  string str;
  getline(cin, str);

  for (int i = 0; i < static_cast<int>(str.size()); i++) {
    if ('A' <= str[i] && str[i] <= 'Z') {
      str[i] -= dif;
    } else if ('a' <= str[i] && str[i] <= 'z') {
      str[i] += dif;
    }
  }

  cout << str << endl;
}


#include <cctype>
#include <iostream>
#include <queue>
#include <stack>
#include <stddef.h>
#include <string>

using namespace std;

int main() {
  char ch;

  while (1) {
    cin >> ch;
    if (islower(ch))
      ch = toupper(ch);
    else if (isupper(ch))
      ch = tolower(ch);
    cout << ch;
    if (ch == '\\n')
      break;
  }
}

#include <cctype>
#include <iostream>
#include <queue>
#include <stack>
#include <stddef.h>
#include <stdio.h>
#include <string>

using namespace std;

int main() {
  char ch;

  while (1) {
    scanf("%c", &ch);
    if (islower(ch))
      ch = toupper(ch);
    else if (isupper(ch))
      ch = tolower(ch);
    cout << ch;
    if (ch == '\\n')
      break;
  }
}


#include <stdio.h>
int main() {
  char s[1200];
  int c;
  int cnt = 0;

  while ((c = getchar()) != EOF) {
    if (c >= 'a' && c <= 'z') {
      c = c - 32;
    } else if (c >= 'A' && c <= 'Z') {
      c = c + 32;
    }
    s[cnt] = c;
    cnt++;
    putchar(c);
  }

  return 0;
}


#include <cctype>
#include <iostream>
using namespace std;

int main() {
  while (1) {
    char in;
    char out;
    bool s_tf = false;
    bool l_tf = false;

    cin >> in;
    s_tf = islower(in);
    l_tf = isupper(in);

    if (s_tf == true) {
      out = toupper(in);
      cout << out;
    } else if (l_tf == true) {
      out << tolower(in);
      cout << out;
    } else if (in == '\\n') {
      break;
    } else {
      cout << in;
    }
  }

  cout << endl;

  return 0;
}

#include <cctype>
#include <iostream>
#include <string>
using namespace std;

int main() {
  char in[1200];
  char out;
  int i = 0;

  cin.getline(in, sizeof(in));

  while (1) {
    bool s_tf = false;
    bool l_tf = false;

    s_tf = islower(in[i]);
    l_tf = isupper(in[i]);

    if (s_tf == true) {
      out = toupper(in[i]);
      cout << out;
    } else if (l_tf == true) {
      out = tolower(in[i]);
      cout << out;
    } else if (in[i] == '\\0') {
      cout << endl;
      break;
    } else {
      cout << in[i];
    }
    i++;
  }

  return 0;
}


#include "bits/stdc++.h"
using namespace std;
int main() {
  char str[1202];
  memset(str, '+', sizeof(str));
  int i = 0;
  str[i] = getchar();
  while (str[i] != '.') {
    if (str[i] >= 97) {
      str[i] = str[i] - 32;
    } else if (str[i] >= 65) {
      str[i] = str[i] + 32;
    }
    cout << str[i];
    i++;
    str[i] = getchar();
  }
  cout << str[i] << endl;
  ;
}

#include "bits/stdc++.h"
using namespace std;
int main() {
  char str[1202];
  memset(str, '+', sizeof(str));
  int i = 0;
  str[i] = getchar();
  while (str[i] == 0x20 || str[i] <= 122 && str[i] >= 33) {
    if (str[i] >= 97) {
      str[i] = str[i] - 32;
    } else if (str[i] >= 65) {
      str[i] = str[i] + 32;
    }
    cout << str[i];
    i++;
    str[i] = getchar();
  }
  cout << endl;
}
// Fair, later, occasionally cloudy.
// Fair, later, occasionally cloudy.


#include <cstdio>
char f(char c) {
  switch (c) {
  case 'a':
    return 'A';
  case 'b':
    return 'B';
  case 'c':
    return 'C';
  case 'd':
    return 'D';
  case 'e':
    return 'E';
  case 'f':
    return 'F';
  case 'g':
    return 'G';
  case 'h':
    return 'H';
  case 'i':
    return 'I';
  case 'j':
    return 'J';
  case 'k':
    return 'K';
  case 'l':
    return 'L';
  case 'm':
    return 'M';
  case 'n':
    return 'N';
  case 'o':
    return 'O';
  case 'p':
    return 'P';
  case 'q':
    return 'Q';
  case 'r':
    return 'R';
  case 's':
    return 'S';
  case 't':
    return 'T';
  case 'u':
    return 'U';
  case 'v':
    return 'V';
  case 'w':
    return 'W';
  case 'x':
    return 'X';
  case 'y':
    return 'Y';
  case 'z':
    return 'Z';
  case 'A':
    return 'a';
  case 'B':
    return 'b';
  case 'C':
    return 'c';
  case 'D':
    return 'd';
  case 'E':
    return 'e';
  case 'F':
    return 'f';
  case 'G':
    return 'g';
  case 'H':
    return 'h';
  case 'I':
    return 'i';
  case 'J':
    return 'j';
  case 'K':
    return 'k';
  case 'L':
    return 'l';
  case 'M':
    return 'm';
  case 'N':
    return 'n';
  case 'O':
    return 'o';
  case 'P':
    return 'p';
  case 'Q':
    return 'q';
  case 'R':
    return 'r';
  case 'S':
    return 's';
  case 'T':
    return 't';
  case 'U':
    return 'u';
  case 'V':
    return 'v';
  case 'W':
    return 'w';
  case 'X':
    return 'x';
  case 'Y':
    return 'y';
  case 'Z':
    return 'z';
  }
  return c;
}
int main() {
  char x;
  while (scanf("%x", &x) != EOF) {
    printf("%x", f(x));
  }
  return 0;
}

#include <cctype>
#include <cstdio>
#include <iostream>

using namespace std;

int main(void) {
  char x;
  while (1) {
    x = getchar();
    if (islower(x))
      x = toupper(x);
    else if (isupper(x))
      x = tolower(x);
    cout << x;
    if (x == '\\n')
      break;
  }

  return 0;
}


#include <cstdio>

int main() { // 受け取る文字列の最大の長さ＋１の配列を用意する
  char s[1201];
  scanf("%[^\\n]", s);

  // ヌル文字に遭遇するまでループする
  for (int i = 0; s[i] != '\\0'; i++) {
    // i番目の文字
    char c = s[i];

    if (c >= 65 && c <= 90) {
      s[i] = c + 32;
    }

    else if (c >= 97 && c <= 122) {
      s[i] = c - 32;
    }
    printf("%sa", s[i]);
  }
}

#include <cstdio>

int main() { // 受け取る文字列の最大の長さ＋１の配列を用意する
  char s[1201];
  scanf("%[^\\n]", s);

  // ヌル文字に遭遇するまでループする
  for (int i = 0; s[i] != '\\0'; i++) {
    // i番目の文字
    char c = s[i];

    if (c >= 65 && c <= 90) {
      s[i] = c + 32;
    }

    else if (c >= 97 && c <= 122) {
      s[i] = c - 32;
    }
  }
  printf("%s\\n", s);
}


#include <cctype>
#include <iostream>
#include <stdio.h>
using namespace std;

int main() {
  char ch;
  while (1) {
    scanf(" %c", &ch);

    if (isupper(ch))
      cout << (char)tolower(ch);
    else if (islower(ch))
      cout << (char)toupper(ch);
    else {
      if (ch == '\\n')
        break;
      cout << ch;
    }
  }
  cout << endl;

  return 0;
}

#include <cctype>
#include <iostream>
#include <stdio.h>
using namespace std;

int main() {
  char ch;
  while (1) {
    scanf("%c", &ch);

    if (isupper(ch))
      cout << (char)tolower(ch);
    else if (islower(ch))
      cout << (char)toupper(ch);
    else {
      if (ch == '\\n')
        break;
      cout << ch;
    }
  }
  cout << endl;

  return 0;
}


#include <cctype>
#include <iostream>
using namespace std;

int main(void) {
  char ch;

  while (true) {
    cin >> ch;

    if (islower(ch))
      cout << (char)toupper(ch);
    else if (isupper(ch))
      cout << (char)tolower(ch);
    else
      cout << ch;

    if (ch == '\\n') {
      cout << "\\n";
      break;
    }
  }

  return 0;
}

#include <cctype>
#include <stdio.h>
using namespace std;

int main(void) {
  char ch = ' ';

  while (true) {
    scanf("%c", &ch);

    if (islower(ch))
      printf("%c", (char)toupper(ch));
    else if (isupper(ch))
      printf("%c", (char)tolower(ch));
    else
      printf("%c", ch);

    if (ch == '\\n')
      break;
  }

  return 0;
}


#include <cstdio>
using namespace std;
int main() {
  char str;
  while (scanf("%c", &str) && str != EOF) {
    if (str >= 'a' && str <= 'z') {
      str = str - 32;
      printf("%c", str);
    } else if (str >= 'A' && str <= 'Z') {
      str = str + 32;
      printf("%c", str);
    } else {
      printf("%c", str);
    }
  }
  printf("\\n");
  return 0;
}

#include <cstdio>
using namespace std;
int main() {
  char str;
  while (scanf("%c", &str) != EOF) {
    if (str >= 'a' && str <= 'z') {
      str = str - 32;
      printf("%c", str);
    } else if (str >= 'A' && str <= 'Z') {
      str = str + 32;
      printf("%c", str);
    } else {
      printf("%c", str);
    }
  }

  return 0;
}


#include <cctype>
#include <cstdio>
#include <iostream>

using namespace std;

int main() {

  char moji;

  while (1) {

    cin >> moji;

    if (moji == '\\n')
      break;

    if (moji == ' ') {

      cout << " ";
    }

    if (islower(moji)) {

      printf("%c", toupper(moji));

    } else {

      printf("%c", tolower(moji));
    }
  }

  cout << "\\n";

  return 0;
}

#include <cctype>
#include <cstdio>
#include <iostream>

using namespace std;

int main() {

  char moji;

  while (1) {

    scanf("%c", &moji);

    if (moji == '\\n')
      break;

    if (moji == ' ') {

      printf(" ");

      continue;
    }

    if (islower(moji)) {

      printf("%c", toupper(moji));

    } else {

      printf("%c", tolower(moji));
    }
  }

  cout << "\\n";

  return 0;
}


#include <iostream>
#include <string>

int main() {
  std::string s;
  std::getline(std::cin, s);
  for (int i = 0; s[i]; ++i) {
    if (65 <= s[i] && s[i] <= 90)
      s[i] += 32;
    else if (97 <= s[i] && s[i] <= 122)
      s[i] -= 32;
  }
  std::cout << s << '\\n';
}


#include <iostream>
using namespace std;
int main() {
  char ch;
  while (1) {
    cin >> ch;
    if (ch == '\\n')
      break;
    if (isalpha(ch)) {
      if (isupper(ch)) {
        ch = tolower(ch);
      } else {
        ch = toupper(ch);
      }
      cout << ch;
    } else {
      cout << ch;
      if (ch != '.') {
        cout << " ";
      }
    }
  }
  return 0;
}

#include <cctype>
#include <cstdio>

int main() {
  char ch;

  while (1) {
    scanf("%c", &ch);

    if (islower(ch))
      printf("%c", toupper(ch));
    else if (isupper(ch))
      printf("%c", tolower(ch));
    else
      printf("%c", ch);

    if (ch == '\\n')
      break;
  }

  return 0;
}


#include <iostream>
using namespace std;

int main() {
  char x;
  while (1) {
    cin >> x;
    if (x == '\\n')
      break;
    if (x == ' ') {
      cout << " ";
      continue;
    }
    if (islower(x))
      x = toupper(x);
    else if (isupper(x))
      x = tolower(x);
    cout << x;
  }
  return 0;
}

#include <cctype>
#include <stdio.h>
int main() {
  char ch;
  while (1) {
    scanf("%c", &ch);
    if (islower(ch))
      ch = toupper(ch);
    else if (isupper(ch))
      ch = tolower(ch);
    printf("%c", ch);
    if (ch == '\\n')
      break;
  }
  return 0;
}


#include <ctype.h>
#include <iostream>
#include <string>
using namespace std;

int main() {
  char c;
  while (1) {
    cin >> c;
    if (c == '\\n')
      break;
    if (islower(c)) {
      c = toupper(c);
    } else {
      c = tolower(c);
    }
    cout << c;
  }
  cout << endl;
  return 0;
}

#include <cstdio>
#include <iostream>
#include <string>
using namespace std;

int main() {
  string str;
  int i;
  getline(cin, str);
  for (i = 0; i < str.length(); i++) {
    if (islower(str[i])) {
      str[i] = toupper(str[i]);
    } else if (isupper(str[i])) {
      str[i] = tolower(str[i]);
    }
    cout << str[i];
  }
  cout << endl;
  return 0;
}


#include <cctype>
#include <cmath>
#include <cstdio>
#include <iomanip>
#include <iostream>
using namespace std;

int main() {
  char s[1200] = {};
  while (1) {
    cin >> s;

    for (int i = 0; s[i]; i++) {

      if (islower(s[i]))
        s[i] = toupper(s[i]);
      else if (isupper(s[i]))
        s[i] = tolower(s[i]);
      cout << s[i];
      if (s[i] == '.') {
        cout << endl;
        return 0;
      }
    }
    cout << ' ';
  }

  return 0;
}

#include <cctype>
#include <cmath>
#include <cstdio>
#include <iomanip>
#include <iostream>
using namespace std;

int main() {
  char s;
  while (1) {
    scanf("%c", &s);
    if (s == '\\n')
      break;

    if (islower(s))
      s = toupper(s);
    else if (isupper(s))
      s = tolower(s);
    printf("%c", s);
  }
  cout << endl;

  return 0;
}

/*

#include<algorithm>
#include<bitset>
#include<cctype>
#include<climits>
#include<cmath>
#include<cstdio>
#include<deque>
#include<iomanip>
#include<iostream>
#include<list>
#include<map>
#include<queue>
#include<set>
#include<sstream>
#include<stack>
#include<string>
#include<vector>
using namespace std;

int main() {
        for (char c; (c = getchar()) != '\\n';) {
                if (islower(c))
                        cout << (char)toupper(c);
                else if (isupper(c))
                        cout << (char)tolower(c);
                else
                        cout << c;
        }
        cout << endl;
        return 0;
}

#include<algorithm>
#include<bitset>
#include<cctype>
#include<climits>
#include<cmath>
#include<cstdio>
#include<deque>
#include<iomanip>
#include<iostream>
#include<list>
#include<map>
#include<queue>
#include<set>
#include<sstream>
#include<stack>
#include<string>
#include<vector>
using namespace std;

int main() {
        string s; getline(cin, s);
        for (int i = 0; i < s.size(); i++) {
                if (islower(s[i]))
                        cout << (char)toupper(s[i]);
                else if (isupper(s[i]))
                        cout << (char)tolower(s[i]);
                else
                        cout << s[i];
        }
        cout << endl;
        return 0;
}
*/


#include <iostream>
using namespace std;
int main() {
  string str;
  getline(cin, str);
  for (char &i : str) {
    if (i >= 'a' && i <= 'z')
      i = i + ('A' - 'a');
    else if (i >= 'A' && i <= 'Z')
      i = i - ('A' - 'a');
  }
  cout << str << endl;
  return 0;
}

#include <iostream>
using namespace std;
int main() {
  char i;
  while ((i = cin.get())) {
    if (i == '\\n') {
      cout << endl;
      break;
    }
    if (i >= 'a' && i <= 'z')
      cout << char(i - 32);
    else if (i >= 'A' && i <= 'Z')
      cout << char(i + 32);
    else
      cout << i;
  }
  return 0;
}


#include <cctype>
#include <iostream>

int main(int argc, char const *argv[]) {

  while (1) {
    char c;
    std::cin >> c;
    if (c == '\\n')
      break;
    if (std::islower(c)) {
      c = (char)std::toupper(c);
    } else if (std::isupper(c)) {
      c = (char)std::tolower(c);
    }
    std::cout << c;
  }
  std::cout << std::endl;
  return 0;
}

#include <cctype>
#include <iostream>
#include <string>

int main(int argc, char const *argv[]) {
  std::string s;
  std::getline(std::cin, s);
  std::string::const_iterator it = s.begin();
  while (it != s.end()) {
    char c;
    c = *it;
    if (c == '\\n')
      break;
    if (std::islower(c)) {
      c = (char)std::toupper(c);
    } else if (std::isupper(c)) {
      c = (char)std::tolower(c);
    }
    std::cout << c;
    it++;
  }
  std::cout << std::endl;
  return 0;
}


#include <cctype>
#include <cstdio>

int main() {
  char ch;
  while (1) {
    scanf("%c, &ch");
    if (isalpha(ch)) {
      if (islower(ch)) {
        printf("%c", toupper(ch));
      } else {
        printf("%c", tolower(ch));
      }
    } else {
      printf("%c", ch);
    }
    if (ch == '\\n') {
      break;
    }
  }
  return 0;
}

#include <cctype>
#include <cstdio>
int main() {
  char ch;
  while (1) {
    scanf("%c", &ch);
    if (isalpha(ch)) {
      if (islower(ch))
        printf("%c", toupper(ch));
      else
        printf("%c", tolower(ch));
    } else
      printf("%c", ch);
    if (ch == '\\n')
      break;
  }
  return 0;
}


#include <cctype>
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
  char ch;

  while (1) {

    scanf("%c", ch);

    if (ch == '\\n') {

      // cout << endl;
      break;
    }

    if (isalpha(ch) == true) {

      if (islower(ch) == true) {

        printf("%c", toupper(ch));

      } else {

        printf("%c", tolower(ch));
      }

      /* } else if (ch == ' ') {

           cout << ' ';

       } else if (ch == ',') {

           cout << ',';

       } else if (ch == '.') {

           cout << '.';
           */
    } else {

      cout << ch;
    }
  }

  return 0;
}

#include <cctype>
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
  char ch;

  while (1) {

    scanf("%c", &ch);

    if (isalpha(ch)) {

      if (islower(ch)) {

        printf("%c", toupper(ch));

      } else {

        printf("%c", tolower(ch));
      }

      /* } else if (ch == ' ') {

           cout << ' ';

       } else if (ch == ',') {

           cout << ',';

       } else if (ch == '.') {

           cout << '.';
           */
    } else {

      cout << ch;
    }

    if (ch == '\\n') {

      // cout << endl;
      break;
    }
  }

  return 0;
}


#include <cstdio>;
// 入出力を行う関数が使える//(scanf,printf)
#include <cctype>;
// 文字の種類の判定や文字の変換を行う関数を使うことができる//

int main() {
  char ch;

  while (true) {
    scanf("%c", ch);
    // 文字（1文字）として入力する//
    if (isalpha(ch)) {
      // chがアルファベットならtrueを返す//
      if (islower(ch))
        printf("%c", toupper(ch));
      // chが小文字ならtrueを返す// //chの大文字を返す//
      else
        printf("%c", tolower(ch));
      // chの小文字を返す//
    } else
      printf("%c", ch);
    // アルファベット以外はそのまま出力//

    if (ch == '\\n')
      break;
    // 終端文字が現れたら終了//
  }
  return 0;
}

#include <cstdio>;
// 入出力を行う関数が使える//(scanf,printf)
#include <cctype>;
// 文字の種類の判定や文字の変換を行う関数を使うことができる//

int main() {
  char ch;

  while (true) {
    scanf("%c", &ch);
    // 文字（1文字）として入力する//
    if (isalpha(ch)) {
      // chがアルファベットならtrueを返す//
      if (islower(ch))
        printf("%c", toupper(ch));
      // chが小文字ならtrueを返す// //chの大文字を返す//
      else
        printf("%c", tolower(ch));
      // chの小文字を返す//
    } else
      printf("%c", ch);
    // アルファベット以外はそのまま出力//

    if (ch == '\\n')
      break;
    // 終端文字が現れたら終了//
  }
  return 0;
}


#include <iostream>
// #include <cstring>
// #include <cctype>
#include <ctime>
using namespace std;

int main() {
  char c;
  while (1) {
    cin >> c;
    if (isupper(c)) {
      cout << (char)tolower(c);
    } else {
      cout << (char)toupper(c);
    }
    if (c == '\\n')
      break;
  }
  return 0;
}

#include <iostream>
// #include <cstring>
// #include <cctype>
// #include <ctime>
using namespace std;

int main() {
  char c;
  while (1) {
    scanf("%c", &c);
    if (isupper(c)) {
      cout << (char)tolower(c);
    } else {
      cout << (char)toupper(c);
    }
    if (c == '\\n')
      break;
  }
  return 0;
}


#include <cctype>
#include <cstdio>
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
  char ch, ci;
  while (1) {
    scanf("%c", &ch);
    if (ch == '\\0')
      break;
    if (islower(ch)) {
      ci = toupper(ch);
      cout << ci;
    } else if (isupper(ch)) {
      ci = tolower(ch);
      cout << ci;
    } else if (ch == ',') {
      cout << ',';
    } else if (ch == ' ') {
      cout << ' ';
    }
  }
}

#include <cctype>
#include <cstdio>
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
  char ch, ci;
  while (1) {
    scanf("%c", &ch);
    if (ch == '\\n')
      break;
    if (islower(ch)) {
      ci = toupper(ch);
      cout << ci;
    } else if (isupper(ch)) {
      ci = tolower(ch);
      cout << ci;
    } else if (ch == ',') {
      cout << ',';
    } else if (ch == ' ') {
      cout << ' ';
    } else if (ch == '.') {
      cout << '.';
    } else {
      cout << ch;
    }
  }
  cout << endl;
}


#include <cctype>
#include <cstdio>
#include <iostream>

using namespace std;

int main() {
  char c;

  while (true) {
    cin >> c;
    if (c == '\\n')
      break;
    else {
      if (isupper(c))
        c = tolower(c);
      else if (islower(c))
        c = toupper(c);

      printf("%c", c);
    }
  }

  return 0;
}

#include <cctype>
#include <cstdio>

using namespace std;

int main() {
  char c;

  while (true) {
    scanf("%c", &c);
    if (isupper(c))
      c = tolower(c);
    else if (islower(c))
      c = toupper(c);

    printf("%c", c);

    if (c == '\\n')
      break;
  }

  return 0;
}


#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;

bool is_lower(char &c) {
  if ('a' <= c && c <= 'z') {
    return true;
  }
  return false;
}

bool is_upper(char &c) {
  if ('A' <= c && c <= 'Z') {
    return true;
  }
  return false;
}

void to_lower(char &c) { c += 'a' - 'A'; }

void to_upper(char &c) { c += 'A' - 'a'; }

int main() {
  char c;
  while (1) {
    cin >> c;
    if (is_lower(c)) {
      to_upper(c);
    } else if (is_upper(c)) {
      to_lower(c);
    }
    printf("%c", c);
  }
  return 0;
}

#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;

bool is_lower(char &c) {
  if ('a' <= c && c <= 'z') {
    return true;
  }
  return false;
}

bool is_upper(char &c) {
  if ('A' <= c && c <= 'Z') {
    return true;
  }
  return false;
}

void to_lower(char &c) { c += 'a' - 'A'; }

void to_upper(char &c) { c += 'A' - 'a'; }

int main() {
  string str;
  getline(cin, str);
  for (int i = 0; i < str.length(); i++) {
    if (is_lower(str[i])) {
      to_upper(str[i]);
    } else if (is_upper(str[i])) {
      to_lower(str[i]);
    }
    printf("%c", str[i]);
  }
  printf("\\n");
  return 0;
}


#include <cctype>
#include <iostream>

using namespace std;

int main(void) {
  char c;
  while (1) {
    cin >> c;
    if (c == '\\n')
      break;
    if (islower(c)) {
      c = toupper(c);
    } else if (isupper(c)) {
      c = tolower(c);
    }
    cout << c;
    cin >> c;
  }

  return 0;
}

#include <cctype>
#include <cstdio>

using namespace std;

int main(void) {
  char c;
  while (1) {
    scanf("%c", &c);
    if (isalpha(c)) {
      if (islower(c)) {
        c = toupper(c);
      } else if (isupper(c)) {
        c = tolower(c);
      }
    }
    printf("%c", c);
    if (c == '\\n')
      break;
  }

  return 0;
}


#include <cctype>
#include <cstdio>

int main() {
  char ch;
  while (1) {
    scanf("%c", &ch);
    if (isalpha(ch)) {
      if (islower) {
        printf("%c", toupper(ch));
      } else {
        printf("%c", tolower(ch));
      }

      if (ch == '\\n')
        break;
    }
  }

  return 0;
}

#include <cctype>
#include <cstdio>

int main() {
  char ch;
  while (1) {
    scanf("%c", &ch);
    if (isalpha(ch)) {
      if (islower(ch))
        printf("%c", toupper(ch));
      else
        printf("%c", tolower(ch));
    } else
      printf("%c", ch);

    if (ch == '\\n')
      break;
  }

  return 0;
}


#include <cstdio>
#include <iostream>
#include <string>
using namespace std;

int main() {
  char ch, ch2;

  while (1) {
    scanf("%c", &ch);

    if (islower(ch)) {
      ch2 = toupper(ch);
      cout << ch2;
    } else {
      ch2 = tolower(ch);
      cout << ch2;
    }
    if (ch == ' \\n') {
      break;
    }
  }

  return 0;
}

#include <cstdio>
#include <iostream>
#include <string>
using namespace std;

int main() {
  char ch, ch2;

  while (1) {
    scanf("%c", &ch);

    if (islower(ch)) {
      ch2 = toupper(ch);
      cout << ch2;
    } else {
      ch2 = tolower(ch);
      cout << ch2;
    }

    if (ch == '\\n') {
      break;
    }
  }

  return 0;
}


#include <iostream>
#include <string>
using namespace std;
char upper(char C) {
  if (C >= 'a' && C <= 'z') {
    C -= 32;
  } else if (C >= 'A' && C <= 'Z')
    C += 32;
  return C;
}
int main() {
  char s;
  while (cin >> s, s != '\\n') {
    s = upper(s);
    cout << s;
  }
  cout << endl;
  return 0;
}

#include <cstdio>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
char upper(char C) {
  if (C >= 'a' && C <= 'z') {
    C -= 'a' - 'A';
  } else if (C >= 'A' && C <= 'Z')
    C += 'a' - 'A';
  return C;
}
int main() {
  string str;
  vector<string> pri;
  while (cin >> str) {
    for (int i = 0; i < str.size(); i++)
      str[i] = upper(str[i]);
    pri.push_back(str);
  }
  for (int i = 0; i < pri.size(); i++) {
    cout << pri[i];
    if (i != pri.size() - 1)
      cout << " ";
  }
  cout << endl;
  return 0;
}


#include <cctype>
#include <iostream>
using namespace std;

int main() {
  char ch;
  while (1) {
    cin >> ch;
    if (ch == '\\n')
      break;

    if (isalpha(ch)) {
      if (isupper(ch))
        cout << tolower(ch);
      else
        cout << toupper(ch);
    }

    else
      cout << ch;
  }
  return 0;
}

#include <cctype>
#include <cstdio>

int main() {
  char ch;
  while (1) {
    scanf("%c", &ch);

    if (isalpha(ch)) {
      if (isupper(ch))
        printf("%c", tolower(ch));
      else
        printf("%c", toupper(ch));
    } else
      printf("%c", ch);
    if (ch == '\\n')
      break;
  }
  return 0;
}


#include <iostream>
using namespace std;
int main() {
  while (1) {
    char ch;
    cin >> ch;
    int islower(char ch);
    if (ch == true) {
      int toupper(char ch);
    } else {
      int toupper(char ch);
    }
    int isupper(char ch);
    if (ch == true) {
      int tolower(char ch);
    } else {
      int toupper(char ch);
    }
  }

  return 0;
}

#include <cstdio>
#include <iostream>
using namespace std;

int main() {
  char ch;
  while (1) {
    scanf("%c", &ch);
    if ('a' <= ch && ch <= 'z') {
      printf("%c", ch - 32);
    } else if ('A' <= ch && ch <= 'Z') {
      printf("%c", ch + 32);
    } else {
      printf("%c", ch);
    }
    if (ch == '\\n')
      break;
  }
  return 0;
}


*** stack smashing detected ***: terminated


#include <cctype>
#include <iostream>

using namespace std;

int main() {
  char t;

  cin >> t;
  while (1) {
    if (t == '\\n')
      break;
    if (isalpha(t)) {
      if (islower(t))
        toupper(t);
      if (isupper(t))
        tolower(t);
    }
    cout << t;
  }
  cout << endl;
  return 0;
}

#include <cctype>
#include <cstdio>

using namespace std;

int main() {
  char ch;
  while (1) {
    scanf("%c", &ch);
    if (isalpha(ch)) {
      if (islower(ch))
        printf("%c", toupper(ch));
      else
        printf("%c", tolower(ch));
    } else
      printf("%c", ch);
    if (ch == '\\n')
      break;
  }
  return 0;
}


#include <iostream>
using namespace std;

int main() {

  int a;
  char b;

  while (1) {

    cin >> b;

    a = b;

    if (a >= 97 && a <= 122) {
      a -= 32;
    }

    if (a >= 65 && a <= 90) {
      a += 32;
    }

    b = a;

    cout << b;

    if (b == '\\n')
      break;
  }

  cout << endl;

  return 0;
}

#include <cstdio>
#include <iostream>
#include <string>
using namespace std;

int main() {

  int b, i = 0;
  // char buf[1200];
  string a;
  getline(cin, a);
  /*
  while(i < 1200){
          b = buf[i];
          if(b == '\\n')break;
          else if(b >= 96 && b <= 122){
                  b -= 32;
          }

          else if(b >= 64 && b <= 90){
                  b += 32;
          }
          cout << char(b);
          i++;
  }
  */

  for (int i = 0; i < a.size(); i++) {
    b = a[i];
    if (b == '\\n')
      break;
    else if (b >= 96 && b <= 122) {
      b -= 32;
    }

    else if (b >= 64 && b <= 90) {
      b += 32;
    }
    cout << (char)b;
  }
  cout << endl;
  return 0;
}


#include <algorithm>
#include <iostream>
#include <sstream>
#include <string>

#include <cctype>
#include <cstdio>
using namespace std;

int main() {
  char ch;
  while (1) {
    cin >> ch;
    if (isalpha(ch)) {
      if (islower(ch))
        printf("%c", toupper(ch));
      else
        printf("%c", tolower(ch));
    } else
      printf("%c", ch);
    if (ch == '\\n')
      break;
  }

  return 0;
}

#include <algorithm>
#include <iostream>
#include <sstream>
#include <string>

#include <cctype>
#include <cstdio>
using namespace std;

int main() {
  char ch;
  while (1) {
    scanf("%c", &ch);
    if (isalpha(ch)) {
      if (islower(ch))
        printf("%c", toupper(ch));
      else
        printf("%c", tolower(ch));
    } else
      printf("%c", ch);
    if (ch == '\\n')
      break;
  }

  return 0;
}


#include <cstdio>;
// 入出力を行う関数が使える//(scanf,printf)
#include <cctype>;

int main() {
  char ch;

  while (true) {
    scanf("%c,&ch");
    if (isalpha(ch)) {
      // chがアルファベットならtrueを返す//
      if (islower(ch))
        printf("%c", toupper(ch));
      // chが小文字ならtrueを返す// //chの大文字を返す//
      else
        printf("%c", tolower(ch));
      // chの小文字を返す//
    } else
      printf("%c", ch);
    // アルファベット以外はそのまま出力//

    if (ch == '\\n')
      break;
    // 終端文字が現れたら終了//
  }
  return 0;
}

#include <cstdio>;
// 入出力を行う関数が使える//(scanf,printf)
#include <cctype>;

int main() {
  char ch;

  while (true) {
    scanf("%c", &ch);
    if (isalpha(ch)) {
      // chがアルファベットならtrueを返す//
      if (islower(ch))
        printf("%c", toupper(ch));
      // chが小文字ならtrueを返す// //chの大文字を返す//
      else
        printf("%c", tolower(ch));
      // chの小文字を返す//
    } else
      printf("%c", ch);
    // アルファベット以外はそのまま出力//

    if (ch == '\\n')
      break;
    // 終端文字が現れたら終了//
  }
  return 0;
}


#include <iostream>
#include <string.h>

using namespace std;

int main() {

  char ch[1021];

  cin.getline(ch, 1201, '\\n');

  int len = strlen(ch);

  for (int i = 0; i < len; i++) {
    if (ch[i] >= 'a' && ch[i] <= 'z') {
      ch[i] += 'A' - 'a';
    } else if (ch[i] <= 'Z' && ch[i] >= 'A') {
      ch[i] += 'a' - 'A';
    }
  }

  cout << ch << endl;

  return 0;
}

#include <iostream>
#include <string.h>

using namespace std;

int main() {

  char ch[2048];

  cin.getline(ch, 2048, '\\n');

  int len = strlen(ch);

  for (int i = 0; i < len; i++) {
    if (ch[i] >= 'a' && ch[i] <= 'z') {
      ch[i] += 'A' - 'a';
    } else if (ch[i] <= 'Z' && ch[i] >= 'A') {
      ch[i] += 'a' - 'A';
    }
  }

  cout << ch << endl;

  return 0;
}


#include <cctype>
#include <iostream>
using namespace std;

int main() {
  char ch;

  while (1) {
    cin >> ch;
    if (ch == '\\n')
      break;
    if (isalpha(ch)) {
      if (islower(ch)) {
        cout << toupper(ch) << flush;
      } else {
        cout << tolower(ch) << flush;
      }
    } else {
      cout << ch << flush;
    }
  }
}

#include <cctype>
#include <iostream>
using namespace std;

int main() {
  char a[1200] = {0};
  string b;
  getline(cin, b);
  b.copy(a, b.size());
  a[b.size()] = '\\0';
  for (int i = 0; a[i] != '\\0'; ++i) {
    if (islower(a[i])) {
      a[i] = toupper(a[i]);
    } else if (isupper(a[i])) {
      a[i] = tolower(a[i]);
    }
  }

  cout << a << endl;
}


#include <cstdio>
#include <iostream>
#include <string>

using namespace std;

int main() {
  char c;
  while (scanf("%c", &c)) {
    if (c >= 'a' && 'z' >= c) {
      c -= 'a' - 'A';
      cout << c;
    } else if (c >= 'A' && 'Z' >= c) {
      c += 'a' - 'A';
      cout << c;
    } else {
      cout << c;
    }
  }
  cout << endl;

  return 0;
}

#include <cstdio>
#include <iostream>
#include <string>

using namespace std;

int main() {
  char c;
  while (1) {
    scanf("%c", &c);

    if (c >= 'a' && 'z' >= c) {
      c -= 'a' - 'A';
      cout << c;
    } else if (c >= 'A' && 'Z' >= c) {
      c += 'a' - 'A';
      cout << c;
    } else if (c == '\\n') {
      break;
    } else {
      cout << c;
    }
  }
  cout << endl;

  return 0;
}


#include <cctype>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
  char ch = 'A', x = 'A';
  while (true) {

    scanf("%c", &ch);
    if (isalpha(ch)) {
      if (islower(ch)) {
        x = toupper(ch);
      } else {
        x = tolower(ch);
      }
      printf("%c", x);
    } else if (ch != '.') {
      printf("%c", ch);
    } else if (ch == '.') {
      printf("%c", '.');
      break;
    }
  }
  cout << endl;
  return 0;
}

#include <cctype>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
  char ch = 'A', x = 'A';
  int k = 0;
  while (k < 1200) {

    scanf("%c", &ch);
    if (ch == '\\n')
      break;
    if (isalpha(ch)) {
      if (islower(ch)) {
        x = toupper(ch);
      } else {
        x = tolower(ch);
      }
      printf("%c", x);
    } else {
      printf("%c", ch);
    }
    k += 1;
  }
  cout << endl;
  return 0;
}


#include <algorithm>
#include <cctype>
#include <cstdio>
#include <iomanip>
#include <iostream>
#include <string>

using namespace std;
const int M = 100000;
const double pi = 3.141592653589;

int sum(int n, int array[]) {

  int sum = 0;
  for (int i = 0; i < n; i++) {
    sum += array[i];
  }
  return sum;
}

int main() {
  char ch;
  while (1) {
    cin >> ch;
    if (islower(ch))
      ch = toupper(ch);
    else
      ch = tolower(ch);
    cout << ch;
    if (ch == '\\n')
      break;
  }
  cout << endl;
  return 0;
}

#include <algorithm>
#include <cctype>
#include <cstdio>
#include <iomanip>
#include <iostream>
#include <string>

using namespace std;
const int M = 100000;
const double pi = 3.141592653589;

int sum(int n, int array[]) {

  int sum = 0;
  for (int i = 0; i < n; i++) {
    sum += array[i];
  }
  return sum;
}

int main() {
  char ch;
  while (1) {
    scanf("%c", &ch);
    if (islower(ch))
      ch = toupper(ch);
    else if (toupper(ch))
      ch = tolower(ch);
    cout << ch;
    if (ch == '\\n')
      break;
  }

  return 0;
}


#include <cctype>
#include <iostream>

using namespace std;

int main() {
  char ch;

  while (1) {
    cin >> &ch;

    if (ch != '\\n') {
      if (ch >= 'A' && ch <= 'Z') {
        cout << tolower(ch);
      } else if (ch >= 'a' && ch <= 'z') {
        cout << toupper(ch);
      } else {
        cout << ch;
      }
    } else {
      cout << endl;
      break;
    }
  }

  return (0);
}

#include <cctype>
#include <iostream>

#define MAX_LEN (1200)

using namespace std;

int main() {
  char *str = new char[MAX_LEN + 1];

  cin.getline(str, MAX_LEN, '\\n');

  for (int i = 0; str[i] != '\\0'; i++) {
    if (str[i] >= 'A' && str[i] <= 'Z') {
      str[i] = tolower(str[i]);
    } else if (str[i] >= 'a' && str[i] <= 'z') {
      str[i] = toupper(str[i]);
    }
  }

  cout << str << endl;

  delete[] str;

  return (0);
}


#include <cctype>
#include <cstdio>

int main() {
  char A;

  while (1) {
    scanf("%c", &A);
    char S;
    if (isalpha(A)) {
      if (islower(A))
        S = toupper(A);
      else
        S = tolower(A);
      printf("%c", S);
    } else
      printf("%c", A);

    if (A == '.')
      break;
  }

  printf("\\n");

  return 0;
}

#include <cctype>
#include <cstdio>

int main() {
  char A;
  int i = 0;

  while (i < 1200) {
    scanf("%c", &A);
    char S;
    if (isalpha(A)) {
      if (islower(A))
        S = toupper(A);
      else
        S = tolower(A);
      printf("%c", S);
    } else
      printf("%c", A);
    ++i;
    if (A == '\\n')
      break;
  }

  return 0;
}


#include <cctype>
#include <cstdio>
#include <iostream>

int main() {
  char c;

  while (1) {
    scanf("%c", &c);
    if (isalpha(c)) {
      if (islower(c))
        printf("%c", toupper(c));
      else
        printf("%c", tolower(c));
    } else
      printf("%c", c);

    if (c == '/n')
      break;
  }

  return 0;
}

#include <cctype>
#include <cstdio>

int main() {
  char c;

  while (1) {
    scanf("%c", &c);
    if (isalpha(c)) {
      if (islower(c))
        printf("%c", toupper(c));
      else
        printf("%c", tolower(c));
    } else
      printf("%c", c);

    if (c == '\\n')
      break;
  }

  return 0;
}


#include <cctype>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <string>

using namespace std;

int main(void) {
  string in;
  int len;

  while (true) {

    cin >> in;

    if (in[0] == EOF) {
      break;
    }

    cout << " ";

    len = in.length();
    for (int i = 0; i < len; i++) {
      if (islower(in[i])) {
        in[i] = toupper(in[i]);
      } else if (isupper(in[i])) {
        in[i] = tolower(in[i]);
      }
    }

    cout << in;
  }

  return 0;
}

#include <cctype>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <string>

using namespace std;

int main(void) {
  char in[1201];
  int len, j;

  j = 0;
  while (true) {
    scanf("%c", &in[j]);
    if (in[j] == '\\n') {
      in[j + 1] = '\\0';
      break;
    }
    j++;
  }

  len = strlen(in);
  for (int i = 0; i < len; i++) {
    if (islower(in[i])) {
      in[i] = toupper(in[i]);
    } else if (isupper(in[i])) {
      in[i] = tolower(in[i]);
    }
  }

  printf("%s", in);

  return 0;
}


#include <cctype>
#include <iostream>
using namespace std;
int main() {
  char a;
  while (1) {
    cin >> a;
    if (isalpha(a)) {
      if (islower(a))
        cout << (char)toupper(a);
      else if (isupper(a))
        cout << (char)tolower(a);
    } else
      cout << a;
    if (a == '\\n')
      break;
  }
  return 0;
}

#include <cctype>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
  char a;
  while (1) {
    scanf("%c", &a);
    if (isalpha(a)) {
      if (islower(a))
        cout << (char)toupper(a);
      else if (isupper(a))
        cout << (char)tolower(a);
    } else {
      cout << a;
    }
    if (a == '\\n')
      break;
  }
  return 0;
}


#include <iostream>
using namespace std;

int main() {
  char c;
  while (1) {
    cin >> c;
    if ('a' <= c && c <= 'z') {
      cout << char(c - 32);
    } else {
      cout << char(c + 32);
    }
  }
}

#include <iostream>
#include <string>
using namespace std;

int main() {
  string s;
  getline(cin, s);
  char c;
  for (int i = 0; i < s.size(); i++) {
    c = s[i];
    if ('a' <= c && c <= 'z') {
      cout << char(c - 32);
    } else if ('A' <= c && c <= 'Z') {
      cout << char(c + 32);
    } else {
      cout << c;
    }
  }
  cout << endl;
}


#include <cctype>
#include <cstdio>
int main() {
  char a;

  while (1) { // 文字の読み込み
    scanf("%c", &a);

    if (isalpha(a)) { // 入力されたのがアルファベットのとき

      if (islower(a))
        printf("%c", toupper(a)); // 小文字のとき
      else if (isupper(a))
        printf("%c", tolower(a)); // 大文字のとき

    } else if (a == '/n') { //.が入ってきたら終わり
      break;

    } else {
      printf("%c", a);
    }
  }

  return 0;
}

#include <cctype>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
  char n;

  while (1) {
    scanf("%c", &n);

    if (n == '\\n')
      break; // 改行のときおわり

    if (isalpha(n)) { // 入力されたものがアルファベットのとき

      if (islower(n))
        printf("%c", toupper(n));
      else if (isupper(n))
        printf("%c", tolower(n));

    } else {
      printf("%c", n);
    }
  }
  printf("\\n");

  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int sum = 0;
  char number[1001];

  while (1) {
    cin >> number;

    sum = 0;

    for (int i = 0; i < 1000; i++) {
      if (number[i] == 0)
        break;
      sum += number[i] - '0';
    }

    if (sum == 0)
      break;
    else
      cout << sum << endl;
  }

  return 0;
}

#include <cctype>
#include <cstdio>

int main() {
  char ch, a;

  while (1) {
    scanf("%c", &ch);

    if (isalpha(ch)) {
      if (islower(ch))
        printf("%c", toupper(ch));
      else
        printf("%c", tolower(ch));
    } else
      printf("%c", ch);

    if (ch == '\\n')
      break;
  }

  return 0;
}


#include <iostream>
#include <string>
using namespace std;
int main() {
  int as, bs[1500], n = 0;
  string A;
  cin >> A;
  while (1) {
    as = A[n];
    if (A[n] == '\\n')
      break;
    if (A == ",") {
      cout << ",";
    } else if (as / 32 == 2) {
      bs[n] = as + 32;
      cout << (char)bs[n];
    } else {
      bs[n] = as - 32;
      cout << (char)bs[n];
    }
    n++;
  }
}

#include <iostream>
#include <string>
using namespace std;
int main() {
  int as[1234], n;
  string A;
  getline(cin, A);
  for (int i = 0; i < A.size(); i++) {
    if (A[n] == '\\n')
      break;
    as[n] = A[n];
    if (as[n] / 32 == 2) {
      as[n] += 32;
      cout << (char)as[n];
    } else if (as[n] / 32 == 3) {
      as[n] -= 32;
      cout << (char)as[n];
    } else {
      cout << A[n];
    }
    n++;
  }
  cout << endl;
}


#include <ctype.h>
#include <stdio.h>
#include <string.h>

int main(void) {
  int len, i;
  char m[1200];

  scanf("%s", m);

  len = strlen(m);

  for (i = 0; i < len; i++) {
    if (isupper(m[i])) {
      printf("%s", tolower(m[i]));
    }

    else if (islower(m[i])) {
      printf("%s", toupper(m[i]));
    }
  }

  return 0;
}

#include <ctype.h>
#include <stdio.h>
#include <string.h>

int main(void) {
  int len, i;
  char m;

  while ((m = getchar()) != EOF) {

    if (isupper(m)) {
      printf("%c", tolower(m));
    } else {
      printf("%c", toupper(m));
    }
  }

  return 0;
}


#include <bits/stdc++.h>
using namespace std;

int main() {

  string mozi;

  getline(cin, mozi);

  for (int i = 0; (int)mozi.size(); i++) {

    if (islower(mozi[i])) {
      mozi[i] = toupper(mozi[i]);
    } else if (isupper(mozi[i])) {
      mozi[i] = tolower(mozi[i]);
    }
  }
  cout << mozi << endl;

  return 0;
}

#include <bits/stdc++.h>
using namespace std;

int main() {

  string mozi;

  getline(cin, mozi);

  for (int i = 0; i < (int)mozi.size(); i++) {

    if (islower(mozi[i])) {
      mozi[i] = toupper(mozi[i]);
    } else if (isupper(mozi[i])) {
      mozi[i] = tolower(mozi[i]);
    }
  }
  cout << mozi << endl;

  return 0;
}


#include <cctype>
#include <cstdio>
int main() {
  char ch;
  while (1) {
    scanf("%c", &ch);
    if (isalpha(ch)) {
      if (islower(ch))
        printf("%c", toupper(ch));
      else
        printf("%c", tolower(ch));
    } else
      printf("%c", ch);
    if (ch == '/n')
      break;
  }
  return 0;
}

#include <cctype>
#include <cstdio>
int main() {
  char ch;
  while (1) {
    scanf("%c", &ch);
    if (isalpha(ch)) {
      if (islower(ch))
        printf("%c", toupper(ch));
      else
        printf("%c", tolower(ch));
    } else
      printf("%c", ch);
    if (ch == '\\n')
      break;
  }
  return 0;
}


//============================================================================
// Name        : AOJ.cpp
// Author      :
// Version     :
// Copyright   : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <cctype>
#include <iostream>
using namespace std;

int main() {
  char chr;

  while (1) {
    cin >> chr;

    if (isalpha(chr)) {
      if (islower(chr))
        cout << toupper(chr);
      else
        cout << tolower(chr);
    } else
      cout << chr;
    if (chr == '\\n')
      break;
  }

  return 0;
}

//============================================================================
// Name        : AOJ.cpp
// Author      :
// Version     :
// Copyright   : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <cctype>
#include <cstdio>
#include <iostream>
using namespace std;

int main() {
  char chr;
  while (1) {
    chr = cin.get();
    if (chr == '\\n')
      break;
    if (isalpha(chr)) {
      if (islower(chr))
        chr = toupper(chr);
      else
        chr = tolower(chr);
    }
    cout << chr;
  }
  cout << endl;
  return 0;
}


#include <cctype>
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
  char ch;
  while (1) {
    scanf("%c", &ch);
    if (ch == '\\0')
      break;
    else if (isalpha(ch)) {
      if (islower(ch))
        printf("%c", ch = toupper(ch));
      else
        printf("%c", ch = tolower(ch));
    } else
      printf("%c", ch);
  }
  return 0;
}

#include <cctype>
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
  char ch;
  while (1) {
    scanf("%c", &ch);
    if (ch == '\\n')
      break;
    else if (isalpha(ch)) {
      if (islower(ch))
        printf("%c", toupper(ch));
      else
        printf("%c", tolower(ch));
    } else
      printf("%c", ch);
  }
  printf("\\n");
  return 0;
}


#include <cctype>
#include <cstdio>
#include <iostream>
using namespace std;

int main(void) {
  char s;
  while (1) {
    scanf("%c", &s);
    if (islower(s) == 1) {
      cout << toupper(s);
    } else if (isupper(s) == 1) {
      cout << tolower(s);
    } else {
      cout << s;
    }
  }
  cout << endl;
  return 0;
}

#include <cctype>
#include <cstdio>
#include <iostream>
using namespace std;

int main(void) {
  char s;
  while (1) {
    scanf("%c", &s);
    if (s == '\\n') {
      break;
    }
    if (islower(s)) {
      printf("%c", toupper(s));
    } else if (isupper(s)) {
      printf("%c", tolower(s));
    } else {
      cout << s;
    }
  }
  cout << endl;
  return 0;
}


#include <cctype>
#include <cstdio>
#include <iostream>
using namespace std;

int main() {
  char s;
  while (1) {
    cin >> s;
    if (isalpha(s)) {
      if (islower(s))
        cout << (char)toupper(s);
      else if (isupper(s))
        cout << (char)tolower(s);
    } else {
      cout << s;
    }
    if (s == '\\n')
      break;
  }
  return 0;
}

#include <cctype>
#include <cstdio>
#include <iostream>
using namespace std;

int main() {
  char s;
  while (1) {
    scanf("%c", &s);
    if (isalpha(s)) {
      if (islower(s))
        cout << (char)toupper(s);
      else if (isupper(s))
        cout << (char)tolower(s);
    } else {
      cout << s;
    }
    if (s == '\\n')
      break;
  }
  return 0;
}


#include <cctype>
#include <iostream>
using namespace std;

int main() {
  char s;

  while (1) {
    cin >> s;
    if (islower(s))
      s = toupper(s);
    else if (isupper(s))
      s = tolower(s);
    cout << s;
    if (s == '\\n')
      break;
  }
  cout << endl;

  return 0;
}


#include <cctype>
#include <iostream>
using namespace std;
int main() {
  char ch;
  while (1) {
    cin >> ch;
    if (ch == '\\n') {
      cout << "\\n";
      break;
    }

    if (islower(ch)) {
      ch = toupper(ch);
    } else if (isupper(ch)) {
      ch = tolower(ch);
    } else {
    }
    cout << ch;
  }

  return 0;
}

#include <cctype>
#include <cstdio>

int main() {
  char ch;
  while (1) {
    scanf("%c", &ch);
    if (ch == '\\n') {
      break;
    }

    if (islower(ch)) {
      ch = toupper(ch);
    } else if (isupper(ch)) {
      ch = tolower(ch);
    } else {
    }
    printf("%c", ch);
  }
  printf("\\n");

  return 0;
}


#include <cctype>
#include <iostream>

using namespace std;

int main() {
  char ch;
  while (1) {
    cin >> ch;
    if (ch == '\\n')
      break;
    if (islower(ch))
      cout << (char)toupper(ch);
    else if (isupper(ch))
      cout << (char)tolower(ch);
    else if ((ch == ' ' | ch == ',') | ch == '.')
      cout << ch;
  }
}

#include <cctype>
#include <iostream>

using namespace std;

int main() {
  char ch;
  while (1) {
    cin.get(ch);
    if (ch == '\\n')
      break;
    if (islower(ch))
      cout << (char)toupper(ch);
    else if (isupper(ch))
      cout << (char)tolower(ch);
    else
      cout << ch;
  }
  cout << endl;
}


#include <cctype>
#include <iostream>
#include <stdio.h>
int main() {
  char ch;
  while (true) {
    scanf("%c", &ch);
    if (isupper(ch)) {
      std::cout << tolower(ch);
    }
    if (islower(ch)) {
      std::cout << toupper(ch);
      if (ch == '.')
        break;
    }
  }
}

#include <cctype>
#include <iostream>
#include <stdio.h>
int main() {
  char ch, a, b;
  while (1) {
    scanf("%c", &ch);
    if (isupper(ch)) {
      a = tolower(ch);
      std::cout << a;
    } else if (islower(ch)) {
      b = toupper(ch);
      std::cout << b;
    } else {
      std::cout << ch;
    }
    if (ch == '\\n')
      break;
  }
}


#include <cstdio>
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
  char ch, x;
  int ans, num, counter[100] = {}, i, j;
  while (1) {
    cin >> ch;
    if (ch == EOF)
      break;
    else if (ch > 'A' && ch < 'Z') {
      ch += 'a' - 'A';
    }
    num = ch - 'a';
    counter[num]++;
  }
  for (i = 0; i < 26; i++) {
    x = i + 'a';
    ans = counter[i];
    cout << x << " : " << ans << endl;
  }
  return 0;
}

#include <cstdio>
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
  char ch, x;
  int ans, num, counter[100] = {}, i, j;
  while (cin >> ch) {
    if (ch >= 'A' && ch <= 'Z') {
      ch += 'a' - 'A';
    }
    num = ch - 'a';
    counter[num]++;
  }
  for (i = 0; i < 26; i++) {
    x = i + 'a';
    ans = counter[i];
    cout << x << " : " << ans << endl;
  }
  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int a[26] = {}, i;
  char c;
  while (1) {
    cin.get(c);
    if (c == 'EOF')
      break;
    else if ('a' <= c && c <= 'z')
      a[c - 'a']++;
    else if ('A' <= c && c <= 'Z')
      a[c - 'A']++;
  }
  for (i = 0; i < 26; i++) {
    c = 'a' + i;
    cout << c << " : " << a[i] << endl;
  }

  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int a[26] = {}, i;
  char c;
  while (cin.get(c)) {
    if (c == 'EOF')
      break;
    else if ('a' <= c && c <= 'z')
      a[c - 'a']++;
    else if ('A' <= c && c <= 'Z')
      a[c - 'A']++;
  }
  for (i = 0; i < 26; i++) {
    c = 'a' + i;
    cout << c << " : " << a[i] << endl;
  }

  return 0;
}


#include <iostream>
using namespace std;
int main(void) {
  char ch;
  int num;
  int alphabet[26] = {};
  while (1) {
    cin >> ch;
    if (ch == -1)
      break;
    num = ch - 'a';
    if (0 <= num && num < 26)
      alphabet[num]++;
  }
  for (int i = 0; i < 26; i++) {
    ch = 'a' + i;
    cout << ch << " : " << alphabet[i] << endl;
  }
  return 0;
}

#include <iostream>
using namespace std;
int main(void) {
  char ch;
  int num;
  int alphabet[26] = {};
  while (cin >> ch) {
    num = ch - 'a';
    if (0 <= num && num < 26)
      alphabet[num]++;
    num = ch - 'A';
    if (0 <= num && num < 26)
      alphabet[num]++;
  }
  for (int i = 0; i < 26; i++) {
    ch = 'a' + i;
    cout << ch << " : " << alphabet[i] << endl;
  }
  return 0;
}


#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>

using namespace std;

int main(int argc, char const *argv[]) {
  int num;
  int rec[26] = {};
  char str[1201];
  while (1) {
    scanf("%s", str);
    if (str[0] == '\\n')
      break;
    for (int i = 0; i < 26; ++i) {
      if (isalpha(str[i]) != 1)
        break;
      if (isupper(str[i]))
        str[i] = tolower(str[i]);
      num = str[i] - 'a';
      rec[num] += 1;
    }
  }

  for (int i = 0; i < 26; ++i) {
    printf("%c:%d\\n", 'a' + i, rec[i]);
  }

  return 0;
}

#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>

using namespace std;

int main(int argc, char const *argv[]) {
  char ch;
  int rec[26] = {};
  char str[1201];
  while (cin >> ch) {
    ch = tolower(ch);
    if (isalpha(ch))
      rec[ch - 'a']++;
  }

  for (int i = 0; i < 26; ++i) {
    printf("%c : %d\\n", 'a' + i, rec[i]);
  }

  return 0;
}


#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;

int main() {
  char ch;
  int idx = 0, chars[26];

  for (int i = 0; i < 26; i++) {
    chars[i] = 0;
  }

  while (true) {
    cin >> ch;

    if (ch == '.')
      break;
    else if (idx == 0) {
      idx = ch - 'A';
      chars[idx++] += 1;
    } else {
      idx = ch - 'a';
      chars[idx++] += 1;
    }
  }

  for (int i = 0; i < 26; i++) {
    printf("%c : %d\\n", i + 97, chars[i]);
  }

  return 0;
}

#include <cctype>
#include <cstdio>
#include <iostream>
using namespace std;

int main() {
  char ch;
  int idx = 0, chars[26];

  for (int i = 0; i < 26; i++) {
    chars[i] = 0;
  }

  while (cin >> ch) {

    if (!isalpha(ch))
      continue;
    else if (isupper(ch)) {
      idx = ch - 'A';
      chars[idx++] += 1;
    } else {
      idx = ch - 'a';
      chars[idx++] += 1;
    }
  }

  for (int i = 0; i < 26; i++) {
    printf("%c : %d\\n", i + 97, chars[i]);
  }

  return 0;
}


#include <algorithm>
#include <cctype>
#include <cstdio>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <string.h>
#include <string>
#include <utility>
#include <vector>

using namespace std;

int counter[10000];

int main() {

  string s = "abcdefghijklmnopqrstuvwxyz";

  char ch;

  while (cin >> ch) {

    ch = tolower(ch);

    int num = ch - 'a';

    counter[num]++;
  }

  for (int i = 0; i < 26; i++) {
    cout << s[i] << ' ' << ':' << ' ' << counter[i] << endl;
  }
}

#include <algorithm>
#include <cctype>
#include <cstdio>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <string.h>
#include <string>
#include <utility>
#include <vector>

using namespace std;

int counter[10000];

int main() {

  string s = "abcdefghijklmnopqrstuvwxyz";

  char ch;

  while (cin >> ch) {

    if (islower(ch) || isupper(ch)) {

      ch = tolower(ch);

      int num = ch - 'a';

      counter[num]++;
    }
  }

  for (int i = 0; i < 26; i++) {
    cout << s[i] << ' ' << ':' << ' ' << counter[i] << endl;
  }
}


#include <iostream>
#include <string>
using namespace std;

int main() {
  string s;
  int count[58] = {0};
  while (getline(cin, s))
    for (int i = 0; i < s.size(); i++)
      count[s[i] - 'A']++;
  for (int i = 0; i < 26; i++)
    cout << (char)('a' + i) << " : " << count[i] + count[i + 32] << endl;
}

#include <iostream>
#include <string>
using namespace std;
int main() {
  string str;
  int ab[26] = {};
  int i;
  while (getline(cin, str)) {
    for (i = 0; i < str.size(); i++) {
      if (str[i] >= 'a' && str[i] <= 'z')
        ab[str[i] - 'a']++;
      else if (str[i] >= 'A' && str[i] <= 'Z')
        ab[str[i] - 'A']++;
    }
    // cout << str << endl;
  }
  for (i = 0; i < 26; i++) {
    cout << (char)('a' + i) << " : " << ab[i] << endl;
  }
  return 0;
}


#pragma hdrstop
#include <iostream>
#include <vector>
#pragma argsused

int main(int argc, char *argv[]) {

  using namespace std;

  vector<char> Sentence;
  int flag = 0;
  int size = 0;

  while (flag == 0) {
    char Letter;
    cin >> Letter;
    Sentence.push_back(Letter);
    // Sentence.push_back?????¢??°??§???????????§cin >> ????????????????????????
    if (Letter == '.')
      flag = 1;
    size++;
  }

  for (int i = 0; i < 26; i++) {
    int p = i;
    char alpabet;
    char Alpabet;
    int Count = 0;

    if (p == 0)
      alpabet = 'a';
    if (p == 1)
      alpabet = 'b';
    if (p == 2)
      alpabet = 'c';
    if (p == 3)
      alpabet = 'd';
    if (p == 4)
      alpabet = 'e';
    if (p == 5)
      alpabet = 'f';
    if (p == 6)
      alpabet = 'g';
    if (p == 7)
      alpabet = 'h';
    if (p == 8)
      alpabet = 'i';
    if (p == 9)
      alpabet = 'j';
    if (p == 10)
      alpabet = 'k';
    if (p == 11)
      alpabet = 'l';
    if (p == 12)
      alpabet = 'm';
    if (p == 13)
      alpabet = 'n';
    if (p == 14)
      alpabet = 'o';
    if (p == 15)
      alpabet = 'p';
    if (p == 16)
      alpabet = 'q';
    if (p == 17)
      alpabet = 'r';
    if (p == 18)
      alpabet = 's';
    if (p == 19)
      alpabet = 't';
    if (p == 20)
      alpabet = 'u';
    if (p == 21)
      alpabet = 'v';
    if (p == 22)
      alpabet = 'w';
    if (p == 23)
      alpabet = 'x';
    if (p == 24)
      alpabet = 'y';
    if (p == 25)
      alpabet = 'z';

    if (p == 0)
      Alpabet = 'A';
    if (p == 1)
      Alpabet = 'B';
    if (p == 2)
      Alpabet = 'C';
    if (p == 3)
      Alpabet = 'D';
    if (p == 4)
      Alpabet = 'E';
    if (p == 5)
      Alpabet = 'F';
    if (p == 6)
      Alpabet = 'G';
    if (p == 7)
      Alpabet = 'H';
    if (p == 8)
      Alpabet = 'I';
    if (p == 9)
      Alpabet = 'J';
    if (p == 10)
      Alpabet = 'K';
    if (p == 11)
      Alpabet = 'L';
    if (p == 12)
      Alpabet = 'M';
    if (p == 13)
      Alpabet = 'N';
    if (p == 14)
      Alpabet = 'O';
    if (p == 15)
      Alpabet = 'P';
    if (p == 16)
      Alpabet = 'Q';
    if (p == 17)
      Alpabet = 'R';
    if (p == 18)
      Alpabet = 'S';
    if (p == 19)
      Alpabet = 'T';
    if (p == 20)
      Alpabet = 'U';
    if (p == 21)
      Alpabet = 'V';
    if (p == 22)
      Alpabet = 'W';
    if (p == 23)
      Alpabet = 'X';
    if (p == 24)
      Alpabet = 'Y';
    if (p == 25)
      Alpabet = 'Z';

    for (int j = 0; j < size; j++) {
      if (Sentence[j] == alpabet || Sentence[j] == Alpabet)
        Count += 1;
    }
    cout << alpabet << " : " << Count << endl;
  }
  return 0;
}

#include <iostream>
#include <string>
#include <vector>
using namespace std;

int main() {

  std::string Letter;
  int Count[26] = {0};

  while (getline(cin, Letter)) {

    for (int i = 0; i < 26; i++) {
      int p = i;
      char alphabet;
      char Alphabet;

      if (p == 0)
        alphabet = 'a';
      if (p == 1)
        alphabet = 'b';
      if (p == 2)
        alphabet = 'c';
      if (p == 3)
        alphabet = 'd';
      if (p == 4)
        alphabet = 'e';
      if (p == 5)
        alphabet = 'f';
      if (p == 6)
        alphabet = 'g';
      if (p == 7)
        alphabet = 'h';
      if (p == 8)
        alphabet = 'i';
      if (p == 9)
        alphabet = 'j';
      if (p == 10)
        alphabet = 'k';
      if (p == 11)
        alphabet = 'l';
      if (p == 12)
        alphabet = 'm';
      if (p == 13)
        alphabet = 'n';
      if (p == 14)
        alphabet = 'o';
      if (p == 15)
        alphabet = 'p';
      if (p == 16)
        alphabet = 'q';
      if (p == 17)
        alphabet = 'r';
      if (p == 18)
        alphabet = 's';
      if (p == 19)
        alphabet = 't';
      if (p == 20)
        alphabet = 'u';
      if (p == 21)
        alphabet = 'v';
      if (p == 22)
        alphabet = 'w';
      if (p == 23)
        alphabet = 'x';
      if (p == 24)
        alphabet = 'y';
      if (p == 25)
        alphabet = 'z';

      if (p == 0)
        Alphabet = 'A';
      if (p == 1)
        Alphabet = 'B';
      if (p == 2)
        Alphabet = 'C';
      if (p == 3)
        Alphabet = 'D';
      if (p == 4)
        Alphabet = 'E';
      if (p == 5)
        Alphabet = 'F';
      if (p == 6)
        Alphabet = 'G';
      if (p == 7)
        Alphabet = 'H';
      if (p == 8)
        Alphabet = 'I';
      if (p == 9)
        Alphabet = 'J';
      if (p == 10)
        Alphabet = 'K';
      if (p == 11)
        Alphabet = 'L';
      if (p == 12)
        Alphabet = 'M';
      if (p == 13)
        Alphabet = 'N';
      if (p == 14)
        Alphabet = 'O';
      if (p == 15)
        Alphabet = 'P';
      if (p == 16)
        Alphabet = 'Q';
      if (p == 17)
        Alphabet = 'R';
      if (p == 18)
        Alphabet = 'S';
      if (p == 19)
        Alphabet = 'T';
      if (p == 20)
        Alphabet = 'U';
      if (p == 21)
        Alphabet = 'V';
      if (p == 22)
        Alphabet = 'W';
      if (p == 23)
        Alphabet = 'X';
      if (p == 24)
        Alphabet = 'Y';
      if (p == 25)
        Alphabet = 'Z';

      for (int j = 0; j < Letter.size(); j++) {
        if (Letter[j] == alphabet || Letter[j] == Alphabet)
          Count[i] += 1;
      }
    }
  }

  char alphabet[26] = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i',
                       'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r',
                       's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};
  for (int i = 0; i < 26; i++) {
    cout << alphabet[i] << " : " << Count[i] << endl;
  }
  return 0;
}


#include <cctype>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
  char ch;
  int count[26] = {};
  while (1) {
    cin >> ch;
    ch = tolower(ch);
    if (isalpha(ch)) {
      count[ch - 'a']++;
    }
  }
  for (int i = 0; i < 26; i++) {
    printf("%c : %d\\n", i + 'a', count[i]);
  }
}

#include <cctype>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
  char ch;
  int count[26] = {};
  while (cin >> ch) {
    ch = tolower(ch);
    if (isalpha(ch)) {
      count[ch - 'a']++;
    }
  }
  for (int i = 0; i < 26; i++) {
    printf("%c : %d\\n", i + 'a', count[i]);
  }
}


#include <cctype>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
  char ch;
  int count[26] = {};
  while (1) {
    cin >> ch;
    ch = tolower(ch);
    if (isalpha(ch)) {
      count[ch - 'a']++;
    }
  }
  for (int i = 0; i < 26; i++) {
    printf("%c:%d\\n", i + 'a', count[i]);
  }
}


#include <cctype>
#include <iostream>
using namespace std;

int main() {
  char counter[27] = "abcdefghijklmnopqrstuvwxyz", *ch[1200];
  int num, dat[26], i;

  for (i = 0; i < 26; i++) {
    dat[i] = 0;
  }
  i = 0;
  while (cin >> *ch[i]) {
    *ch[i] = tolower(*ch[i]);
    int num = *ch[i] - 'a';
    dat[num]++;
    i++;
    if (i >= 1200)
      break;
  }

  for (i = 0; i < 26; i++) {
    cout << counter[i] << ":" << dat[i] << endl;
  }
  return 0;
}

#include <cctype>
#include <cstring>
#include <iostream>
using namespace std;

int main() {
  char counter[27] = "abcdefghijklmnopqrstuvwxyz";
  string str;
  int num, dat[26], i, x;

  for (i = 0; i < 26; i++) {
    dat[i] = 0;
  }
  while (cin >> str) {
    x = str.size();
    for (i = 0; i < x; i++) {
      if (isupper(str[i])) {
        str[i] = tolower(str[i]);
      }
      int num = str[i] - 'a';
      dat[num]++;
    }
  }

  for (i = 0; i < 26; i++) {
    cout << counter[i] << " : " << dat[i] << endl;
  }
  return 0;
}


#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
  int num;
  int counter[25];
  char ch;
  while (scanf("%c", &ch) != EOF) {
    num = ch - 'a';
    counter[num]++;
  }
  for (int i = 0; i < 26; i++) {
    cout << char('a' + i) << " : " << counter[i] << endl;
  }
  return 0;
}

#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
  int counter[26] = {};
  char ch;
  while (cin >> ch) {
    ch = tolower(ch);
    if (isalpha(ch)) {
      int num = ch - 'a';
      counter[num]++;
    }
  }
  for (int i = 0; i < 26; i++) {
    printf("%c : %d\\n", i + 'a', counter[i]);
  }
  return 0;
}


#include <stdio.h>
using namespace std;

int main() {
  int num[26] = {0};
  while (1) {
    char input;
    scanf("%c", &input);

    if (input == 0)
      break;

    if (input >= 65 && input <= 90)
      num[input - 65]++;
    else if (input >= 97 && input <= 122)
      num[input - 97]++;
  }

  for (int i = 0; i < 26; i++)
    printf("%c : %d\\n", 97 + i, num[i]);
}

#include <iostream>
using namespace std;

int main() {
  int num[26] = {0};
  char input, res;

  while (cin >> input) {

    if (input >= 65 && input <= 90)
      num[input - 65]++;
    else if (input >= 97 && input <= 122)
      num[input - 97]++;
  }

  for (int i = 0; i < 26; i++) {
    res = 'a' + i;
    cout << res << " : " << num[i] << endl;
  }
}


#include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main(void) {
  // Your code here! sakuraihaaho
  string x;
  int hai[26] = {};
  while (getline(cin, x)) {
    for (int i = 0; i < x.size(); i++) {
      if ((int)x.at(i) >= (int)'a' && (int)x.at(i) <= (int)'z')
        hai[x.at(i) - (int)'a'] += 1;
      else
        hai[x.at(i) - (int)'A'] += 1;
    }
  }
  for (int i = 0; i < 26; i++) {
    cout << (char)('a' + i) << " : " << hai[i] << endl;
  }
  return 0;
}

#include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main(void) {
  // Your code here! sakuraihaaho
  string x;
  int hai[26] = {};
  while (getline(cin, x)) {
    for (int i = 0; i < x.size(); i++) {
      if ((int)x.at(i) >= (int)'a' && (int)x.at(i) <= (int)'z')
        hai[x.at(i) - (int)'a'] += 1;
      else if ((int)x.at(i) >= (int)'A' && (int)x.at(i) <= (int)'Z')
        hai[x.at(i) - (int)'A'] += 1;
    }
  }
  for (int i = 0; i < 26; i++) {
    cout << (char)('a' + i) << " : " << hai[i] << endl;
  }
  return 0;
}


#include <algorithm>
#include <cctype>
#include <cstdio>
#include <iostream>
#include <stack>
#include <string>
#include <vector>

#define REP(i, n) for (int i = 0; i < n; i++)
#define REPR(i, n) for (int i = n; i >= 0; i--)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define FORR(i, m, n) for (int i = m; i >= n; i--)
#define llong long long
#define INF 999999999
#define pb(a) push_back(a)

using namespace std;

vector<string> split(string str, char delim) {
  vector<string> res;
  size_t current = 0, found;
  while ((found = str.find_first_of(delim, current)) != string::npos) {
    string tmp = string(str, current, found - current);
    res.push_back(tmp);
    current = found + 1;
  }
  string tmp = string(str, current, found - current);
  tmp.replace(tmp.size() - 1, tmp.size(), "\\0");
  res.push_back(string(str, current, str.size() - current));
  return res;
}

char *StrToLower(char *s) {
  char *p;
  for (p = s; *p; p++) {
    *p = tolower(*p);
  }
  return s;
}

int main() {
  int cnt[26] = {0};

  while (1) {
    char cstr[1201];
    bool isEnd = false;
    cin >> cstr;

    string str = cstr;
    string word = StrToLower(cstr);

    REP(i, str.size()) {
      cnt[cstr[i] - 'a']++;
      if (cstr[i] == '.') {
        isEnd = true;
        break;
      }
    }

    if (isEnd)
      break;
  }

  REP(i, 26) { printf("%c : %d\\n", 'a' + i, cnt[i]); }
}

#include <algorithm>
#include <cctype>
#include <cstdio>
#include <iostream>
#include <stack>
#include <string>
#include <vector>

#define REP(i, n) for (int i = 0; i < n; i++)
#define REPR(i, n) for (int i = n; i >= 0; i--)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define FORR(i, m, n) for (int i = m; i >= n; i--)
#define llong long long
#define INF 999999999
#define pb(a) push_back(a)

using namespace std;

vector<string> split(string str, char delim) {
  vector<string> res;
  size_t current = 0, found;
  while ((found = str.find_first_of(delim, current)) != string::npos) {
    string tmp = string(str, current, found - current);
    res.push_back(tmp);
    current = found + 1;
  }
  string tmp = string(str, current, found - current);
  tmp.replace(tmp.size() - 1, tmp.size(), "\\0");
  res.push_back(string(str, current, str.size() - current));
  return res;
}

char *StrToLower(char *s) {
  char *p;
  for (p = s; *p; p++) {
    *p = tolower(*p);
  }
  return s;
}

int main() {
  int cnt[26] = {0};
  char cstr[1201];
  bool isEnd = false;

  while (cin >> cstr) {
    string str = cstr;
    string word = StrToLower(cstr);

    REP(i, str.size()) {
      cnt[cstr[i] - 'a']++;
      if (cin.eof()) {
        isEnd = true;
        break;
      }
    }

    if (isEnd)
      break;
  }

  REP(i, 26) { printf("%c : %d\\n", 'a' + i, cnt[i]); }
}


#include <cctype>
#include <iostream>
#include <string>
using namespace std;

int main(void) {

  int counter[26];
  string ch;
  char c;

  for (c = 'a'; c <= 'z'; c++) {
    counter[c] = 0;
  }

  while (cin >> ch) {
    for (int i = 0; i < (int)ch.size(); i++) {
      if (isupper(ch[i]))
        ch[i] = tolower(ch[i]);
      counter[ch[i]]++;
    }
  }

  for (c = 'a'; c <= 'z'; c++) {
    cout << c << " : " << counter[c] << endl;
  }

  return 0;
}

#include <cctype>
#include <iostream>
#include <string>
using namespace std;

int main(void) {

  int counter[256];
  string ch;
  char c;

  for (c = 'a'; c <= 'z'; c++) {
    counter[c] = 0;
  }

  while (cin >> ch) {
    for (int i = 0; i < (int)ch.size(); i++) {
      if (isupper(ch[i]))
        ch[i] = tolower(ch[i]);
      counter[ch[i]]++;
    }
  }

  for (c = 'a'; c <= 'z'; c++) {
    cout << c << " : " << counter[c] << endl;
  }

  return 0;
}


#include <stdio.h>
int c[26];

int main(void) {
  int n;
  char ch;
  while (1) {
    scanf("%c", &ch);
    if (ch == '\\n')
      break;
    n = ch - 'a';
    c[n]++;
    n = ch - 'A';
    c[n]++;
  }
  for (int i = 0; i < 26; i++) {
    printf("%c : %d\\n", 'a' + i, c[i]);
  }
  return 0;
}

#include <stdio.h>
int c[1201];

int main(void) {
  char ch;
  while (scanf("%c", &ch) != EOF) {
    if ('a' <= ch && ch <= 'z') {
      c[ch - 'a']++;
    } else if ('A' <= ch && ch <= 'Z') {
      c[ch - 'A']++;
    }
  }
  for (int i = 0; i < 26; i++) {
    printf("%c : %d\\n", 'a' + i, c[i]);
  }
  return 0;
}


#include <algorithm>
#include <bits/stdc++.h>
#include <cmath>
#include <ctype.h>
#include <iostream>
#include <string>
#include <vector>

#define REP(i, n) for (int i = 0; i < (int)(n); i++)
#define ALL(x) (x).begin(), (x).end()
#define square(x) (x) * (x)

const int INF = 1e9;

using namespace std;

int main() {
  int count[26] = {0};
  string word;
  getline(cin, word);
  while (1) {
    REP(i, word.size()) {
      char c = word[i];
      if ((c - 'a') >= 0 && (c - 'z') <= 0)
        c -= 0x20;
      c -= 'A';
      if (0 <= c && c <= 25)
        count[c]++;
    }
    if (word[word.size() - 1] == '.')
      break;
  }

  REP(i, 26) {
    char c = i + 'a';
    cout << c << " : " << count[i] << endl;
  }

  return 0;
}

#include <algorithm>
#include <bits/stdc++.h>
#include <cmath>
#include <ctype.h>
#include <iostream>
#include <string>
#include <vector>

#define REP(i, n) for (int i = 0; i < (int)(n); i++)
#define ALL(x) (x).begin(), (x).end()
#define square(x) (x) * (x)

const int INF = 1e9;

using namespace std;

int main() {
  int count[26] = {0};
  string word;
  while (getline(cin, word) != NULL) {
    REP(i, word.size()) {
      char c = word[i];
      if ((c - 'a') >= 0 && (c - 'z') <= 0)
        c -= 0x20;
      c -= 'A';
      if (0 <= c && c <= 25)
        count[c]++;
    }
  }

  REP(i, 26) {
    char c = i + 'a';
    cout << c << " : " << count[i] << endl;
  }

  return 0;
}


#include <ctype.h>
#include <stdio.h>

int main(void) {
  char str;
  static int cnt[26];
  int ptr;

  while (true) {
    scanf("%c", &str);
    if (str == EOF)
      break;

    if (isalpha(str)) {
      if (isupper(str))
        ptr = str - 'A';
      else
        ptr = str - 'a';
      cnt[ptr]++;
    }
  }

  for (int i = 0; i < 26; i++) {
    printf("%c : %d\\n", 'a' + i, cnt[i]);
  }

  return 0;
}

#include <ctype.h>
#include <stdio.h>

int main(void) {
  char str;
  static int cnt[26];
  int ptr;

  while (scanf("%c", &str) != EOF) {

    if (isalpha(str)) {
      if (isupper(str))
        ptr = str - 'A';
      else
        ptr = str - 'a';
      cnt[ptr]++;
    }
  }

  for (int i = 0; i < 26; i++) {
    printf("%c : %d\\n", 'a' + i, cnt[i]);
  }

  return 0;
}


#include <iostream>
using namespace std;

int main() {
  char ch;
  int num, counter[num];

  while (cin >> ch) {
    num = ch - 'a';
    counter[num]++;
  }
  for (int i = 0; i < 26; i++)
    cout << char('a' + i) << " : " << counter[i] << endl;
  return 0;
}

#include <iostream>
using namespace std;

int main() {
  char ch;
  int num, count[1200] = {0};

  while (cin >> ch) {
    num = ch - 'a';
    if ('A' <= ch && ch <= 'Z')
      count[ch - 'A']++;
    else
      count[num]++;
  }
  for (int i = 0; i < 26; i++)
    cout << char('a' + i) << " : " << count[i] << endl;
  return 0;
}


#include <iostream>
using namespace std;

int main(void) {
  int a[26] = {0};
  char text;
  while (true) {
    cin >> text;
    if (text >= 'a' && text <= 'z')
      a[text - 'a']++;
    if (text >= 'A' && text <= 'Z')
      a[text - 'A']++;
  }
  for (int i = 0; i < 26; i++) {
    cout << (char)(i + 'a') << " : " << a[i] << endl;
  }
  return 0;
}

#include <iostream>
using namespace std;

int main(void) {
  int a[26] = {0};
  char text;
  while (cin >> text) {
    if (text >= 'a' && text <= 'z')
      a[text - 'a']++;
    if (text >= 'A' && text <= 'Z')
      a[text - 'A']++;
  }
  for (int i = 0; i < 26; i++) {
    cout << (char)(i + 'a') << " : " << a[i] << endl;
  }
  return 0;
}


#include <iostream>

using namespace std;

int main() {
  string str;
  int numAlpha[26] = {0};
  for (;;) {
    getline(cin, str);
    for (int i = 0; i < static_cast<int>(str.size()); i++) {
      if ('a' <= str[i] && str[i] <= 'z') {
        numAlpha[str[i] - 'a']++;
      } else if ('A' <= str[i] && str[i] <= 'Z') {
        numAlpha[str[i] - 'A']++;
      }
    }
    if (str[str.size() - 1] == '.')
      break;
  }
  for (int i = 0; i < 26; i++) {
    cout << static_cast<char>('a' + i) << " : " << numAlpha[i] << endl;
  }
}

#include <iostream>

using namespace std;

int main() {
  char ch;
  int numAlpha[26] = {0};

  while (cin >> ch) {
    if ('a' <= ch && ch <= 'z') {
      numAlpha[ch - 'a']++;
    } else if ('A' <= ch && ch <= 'Z') {
      numAlpha[ch - 'A']++;
    }
  }

  for (int i = 0; i < 26; i++) {
    cout << static_cast<char>('a' + i) << " : " << numAlpha[i] << endl;
  }

  return 0;
}


#include <iostream>

using namespace std;

namespace {
const int offset = 97;
}

int main() {
  int res[26] = {0};
  while (true) {
    string s;
    cin >> s;
    for (char &c : s) {
      int i = static_cast<int>(tolower(c));
      res[i - offset]++;
    }

    if (s.find(".") != string::npos)
      break;
  }
  for (int i = 0; i < 26; i++) {
    char c = static_cast<char>(i + offset);
    cout << c << " : " << res[i] << endl;
  }
  return 0;
}

#include <iostream>

using namespace std;

namespace {
const int offset = 97;
}

int main() {
  int res[26] = {0};
  while (true) {
    string s;
    cin >> s;
    if (cin.eof())
      break;

    for (char &c : s) {
      int i = static_cast<int>(tolower(c));
      res[i - offset]++;
    }
  }
  for (int i = 0; i < 26; i++) {
    char c = static_cast<char>(i + offset);
    cout << c << " : " << res[i] << endl;
  }
  return 0;
}


#include <cctype>
#include <cstdio>
using namespace std;
int main() {
  char x;
  int t = 0;
  char P[1200];
  for (int i = 0; i <= 1200; i++) {
    scanf("%c", &x);
    P[i] = tolower(x);
    if (x == '.')
      break;
  }
  for (char s = 'a'; s <= 'z'; s++) {
    for (int i = 0; i < 1200; i++) {
      if (P[i] == '.')
        break;
      else if (P[i] == s)
        t += 1;
    }
    printf("%c : %d\\n", s, t);
    t = 0;
  }
}

#include <cctype>
#include <cstdio>
using namespace std;
int main() {
  char x;
  int t = 0;
  char P[1201];
  for (int i = 0; i <= 1200; i++) {
    scanf("%c", &x);
    P[i] = tolower(x);
  }
  for (char s = 'a'; s <= 'z'; s++) {
    for (int i = 0; i <= 1200; i++) {
      if (P[i] == s)
        t += 1;
    }
    printf("%c : %d\\n", s, t);
    t = 0;
  }
}


#include <cctype>
#include <cstdio>
#include <iostream>
using namespace std;

int main() {

  char moji;
  int alpha[26] = {0};

  while ((moji = getchar()) != 0) {
    moji = tolower(moji);
    alpha[moji - 'a']++;
  }

  for (int i = 0; i < 26; i++) {
    printf("%c : %d\\n", 97 + i, alpha[i]);
  }

  return 0;
}

#include <cctype>
#include <cstdio>
#include <iostream>
using namespace std;

int main() {

  char moji;
  int alpha[26] = {0};

  while ((moji = getchar()) != EOF) {
    moji = tolower(moji);
    alpha[moji - 'a']++;
  }

  for (int i = 0; i < 26; i++) {
    printf("%c : %d\\n", 97 + i, alpha[i]);
  }

  return 0;
}


#include <ctype.h>
#include <stdio.h>
#include <string.h>

int main() {
  char alpha;
  int i, N;
  int cnt[26] = {0};
  for (i = 0; alpha != EOF; i++) {
    scanf("%c", &alpha);
    alpha = tolower(alpha);
    N = alpha - 'a';
    if (0 <= N && N < 26) {
      cnt[i]++;
    }
  }
  for (i = 0; i < 26; i++) {
    printf("%c : %d\\n", i + 'a', cnt[i]);
  }
}

#include <ctype.h>
#include <stdio.h>
#include <string.h>

int main() {
  int alpha;
  int cnt[256] = {0};
  while ((alpha = getchar()) != EOF) {
    alpha = tolower(alpha);
    cnt[alpha]++;
  }
  for (alpha = 'a'; alpha <= 'z'; alpha++) {
    printf("%c : %d\\n", alpha, cnt[alpha]);
  }
  return 0;
}


#include <cctype>
#include <cstdio>
#include <iostream>
#include <string>

using namespace std;

int main() {
  string s;
  unsigned int n[26];
  for (unsigned int i = 0; i < 27; ++i)
    n[i] = 0;
  getline(cin, s);

  for (unsigned int i = 0; i < s.length(); ++i) {
    if (islower(s[i]))
      n[s[i] - 'a']++;
    else if (isupper(s[i]))
      n[s[i] - 'A']++;
  }

  for (unsigned int i = 0; i < 27; ++i) {
    // cout << (char)('a' + i)  << " : " << n[i] << endl;
    printf("%c : %d\\n", ('a' + i), n[i]);
  }

  return 0;
}

#include <cctype>
#include <iostream>
#include <string>

using namespace std;

int main() {
  unsigned int n[27];
  for (unsigned int i = 0; i < 26; ++i)
    n[i] = 0;

  char ch;
  while (cin >> ch) {
    if (islower(ch))
      n[ch - 'a']++;
    else if (isupper(ch))
      n[ch - 'A']++;
  }

  for (unsigned int i = 0; i < 26; ++i) {
    cout << (char)('a' + i) << " : " << n[i] << endl;
  }

  return 0;
}


#include <iostream>
using namespace std;
#include <stdio.h>
int main() {
  char str;
  int count[26] = {0}, i = 0, k;
  while (1) {
    cin >> str;
    if (str == EOF)
      break;
    if ('a' <= str && str <= 'z') {
      k = str - 'a';
      count[k]++;
    }
    if ('A' <= str && str <= 'Z') {
      k = str - 'A';
      count[k]++;
    }
  }
  for (i = 0; i < 26; i++) {
    printf("%c : %d", 'a' + i, count[i]);
    if (i != 26 - 1)
      printf("\\n");
  }
  return 0;
}

#include <iostream>
using namespace std;
#include <stdio.h>
int main() {
  char str;
  int count[26] = {0}, i = 0, k;
  str = getchar();
  while (str != EOF) {
    if ('a' <= str && str <= 'z') {
      k = str - 'a';
      count[k]++;
    }
    if ('A' <= str && str <= 'Z') {
      k = str - 'A';
      count[k]++;
    }
    str = getchar();
  }
  for (i = 0; i < 26; i++) {
    printf("%c : %d\\n", 'a' + i, count[i]);
  }
  return 0;
}


#include <math.h>
#include <stdio.h>
#include <string.h>
#define rep(i, a, n) for (int i = a; i < n; i++)

int main() {
  char c;
  int d[26] = {0};
  while (scanf("%c", &c) != 'EOF') {
    // if(c=='0') break;
    if ('a' <= c && c <= 'z')
      d[c - 'a']++;
    else if ('A' <= c && c <= 'Z')
      d[c - 'A']++;
  }
  rep(i, 0, 26) { printf("%c : %d\\n", 'a' + i, d[i]); }
  return 0;
}

#include <math.h>
#include <stdio.h>
#include <string.h>
#define rep(i, a, n) for (int i = a; i < n; i++)

int main() {
  char c;
  int d[26] = {0};
  while (scanf("%c", &c) != EOF) {
    // if(c=='0') break;
    if ('a' <= c && c <= 'z')
      d[c - 'a']++;
    else if ('A' <= c && c <= 'Z')
      d[c - 'A']++;
  }
  rep(i, 0, 26) { printf("%c : %d\\n", 'a' + i, d[i]); }
  return 0;
}


#include <ctype.h>
#include <stdio.h>

int main() {
  char c;
  int cnt[26];
  int i;
  for (i = 0; i < 26; i++)
    cnt[i] = 0;
  c = getchar();
  while (c != '.') {
    if (isalpha(c)) {
      c = tolower(c);
      cnt[c - 'a']++;
    }
    c = getchar();
  }
  for (i = 0; i < 26; i++)
    printf("%c : %d\\n", 'a' + i, cnt[i]);
}

#include <ctype.h>
#include <stdio.h>

int main() {
  char c;
  int cnt[26];
  int i;
  for (i = 0; i < 26; i++)
    cnt[i] = 0;
  while ((c = getchar()) != EOF) {
    if (isalpha(c)) {
      c = tolower(c);
      cnt[c - 'a']++;
    }
  }
  for (i = 0; i < 26; i++)
    printf("%c : %d\\n", 'a' + i, cnt[i]);
}


#include <algorithm>
#include <cmath>
#include <complex>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;

#define ll long long
#define vvi vector<vector<int>>
#define vi vector<int>
#define All(X) X.begin(), X.end()
#define FOR(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
#define REP(i, n) for (int i = 0; i < (int)(n); i++)
#define pb push_back
#define pii pair<int, int>
#define mp make_pair
ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; }
ll lcm(ll a, ll b) { return a / gcd(a, b) * b; }

int main() {
  /*?????°????????????????????????????????±???
   * ????????§??????????????????????????????(EOF)?????§??\\????????¨??£????????????*/
  int data[100]; //???????????????????????§0-'a'?????§???????????¨
  REP(i, 100) data[i] = 0;
  string str;
  while (cin >> str) { /*????????§EOF?????¨???????????????????????????????????§??¬??????
                          ?????????????????§??????k*/
    REP(i, str.size()) {
      if ('a' <= str[i] && str[i] <= 'z')
        data[(int)str[i]]++;
      else if ('A' <= str[i] && str[i] <= 'Z')
        data[(int)str[i] + ('a' - 'A')]++;
    }
  }
  FOR(i, 'a', 'z') { cout << (char)i << " : " << data[i] << endl; }
}

#include <algorithm>
#include <cmath>
#include <complex>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;

#define ll long long
#define vvi vector<vector<int>>
#define vi vector<int>
#define All(X) X.begin(), X.end()
#define FOR(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
#define REP(i, n) for (int i = 0; i < (int)(n); i++)
#define pb push_back
#define pii pair<int, int>
#define mp make_pair
ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; }
ll lcm(ll a, ll b) { return a / gcd(a, b) * b; }

int main() {
  /*?????°????????????????????????????????±???
   * ????????§??????????????????????????????(EOF)?????§??\\????????¨??£????????????*/
  int data[2000]; //???????????????????????§0-'a'?????§???????????¨
  REP(i, 2000) data[i] = 0;
  string str;
  while (cin >> str) { /*????????§EOF?????¨???????????????????????????????????§??¬??????
                          ?????????????????§??????k*/
    REP(i, str.size()) {
      int c = str[i];
      if ('a' <= str[i] && str[i] <= 'z')
        data[c]++;
      else if ('A' <= str[i] && str[i] <= 'Z')
        data[c + ('a' - 'A')]++;
    }
  }
  FOR(i, (int)'a', (int)'z' + 1) {
    cout << (char)i << " : " << data[i] << endl;
  }
}


#include <iostream>
#include <stdio.h>
#include <string>

using namespace std;

int main() {
  string s;
  getline(cin, s);
  int counter[26];
  for (int i = 0; i < 26; i++) {
    counter[i] = 0;
  }
  for (int i = 0; i < s.length(); i++) {
    int n;
    if (65 <= s[i] <= 90) {
      counter[(int)s[i] - 65]++;
    } else if (97 <= s[i] <= 122) {
      counter[(int)s[i] - 97]++;
    }
  }
  for (int i = 0; i < 26; i++) {
    cout << (char)(i + 65) << " : " << counter[i] << "\\n";
  }
}

#include <iostream>
#include <stdio.h>
#include <string>

using namespace std;

int vowel(char c) {
  if (65 <= c && c <= 90) {
    return (int)c + 32;
  } else if (97 <= c && c <= 122) {
    return (int)c;
  } else {
    return 0;
  }
}

int main() {
  string s;
  int cnt[26];
  for (int i; i < 26; i++) {
    cnt[i] = 0;
  }
  while (getline(cin, s) != 0) {
    for (int i = 0; i < s.length(); i++) {
      int c = vowel(s[i]);
      if (c != 0) {
        int n = c - 97;
        cnt[n]++;
      }
    }
  }
  for (int i; i < 26; i++) {
    cout << (char)(i + 97) << " : " << cnt[i] << "\\n";
  }
}


#include <stdio.h>
int main() {
  int i, j, n, count[100] = {0};
  char ch;
  while (scanf("%c", &ch) != EOF) {
    if (ch >= 'a' && ch <= 'z') {
      count[ch - 'a']++;
    } else if (ch >= 'A' && ch <= 'Z') {
      count[ch - 'A']++;
    }
  }
  for (j = 0; j < 26; j++) {
    printf("%c : %d\\n", j + 'a', count[j]);
  }
  return (0);
}


#include <cstdio>

int main() {
  int count[26];
  for (int i = 0; i < 1201; i++) {
    count[i] = 0;
  }
  char ch;
  while (scanf("%c", &ch) != EOF) {
    if (ch >= 'a' && ch <= 'z') {
      count[ch - 'a']++;
    } else if (ch >= 'A' && ch <= 'Z') {
      count[ch - 'A']++;
    }
  }
  for (int j = 0; j < 26; j++) {
    printf("%c : %d\\n", j + 'a', count[j]);
  }
  return 0;
}

#include <cstdio>

int main() {
  int count[1201];
  char ch;
  while (scanf("%c", &ch) != EOF) {
    if (ch >= 'a' && ch <= 'z') {
      count[ch - 'a']++;
    } else if (ch >= 'A' && ch <= 'Z') {
      count[ch - 'A']++;
    }
  }
  for (int j = 0; j < 26; j++) {
    printf("%c : %d\\n", j + 'a', count[j]);
  }
  return 0;
}


#include <algorithm>
#include <iostream>
#include <locale>
#include <string>
#include <vector>

static bool readLines(std::string &str) {
  std::string tmp;

  if (0x00 == &str) {
    return false;
  }

  while (std::getline(std::cin, tmp)) {
    if (0 < tmp.size()) {
      transform(str.begin(), str.end(), str.begin(), tolower);
      str += tmp;
    }
  }

  return true;
}

static bool countAlpha(const std::string &str, std::vector<int> &v) {
  if (0x00 == &str || 0x00 == &v) {
    return false;
  }

  if (0 >= v.size()) {
    v.resize(26);
    for (unsigned int i = 0; i < v.size(); i++) {
      v.at(i) = 0;
    }
  }

  char ch;
  int index = 0;
  for (unsigned int i = 0; i < str.size(); i++) {
    ch = str.at(i);
    if (false == std::isalpha(ch))
      continue;
    index = static_cast<int>(ch - 'a');
    v.at(index)++;
  }

  return true;
}

int main() {
  std::string alpha("abcdefghijklmnopqrstuvwxyz");
  std::string str;
  std::vector<int> vec(26);

  for (unsigned int i = 0; i < vec.size(); i++) {
    vec.at(i) = 0;
  }

  if (true == readLines(str)) {
    countAlpha(str, vec);
    for (unsigned int i = 0; i < vec.size(); i++) {
      std::cout << alpha.at(i) << " : " << vec.at(i) << std::endl;
    }
  }

  return (0);
}

#include <algorithm>
#include <iostream>
#include <locale>
#include <string>
#include <vector>

static bool readLines(std::string &str) {
  std::string tmp;

  if (0x00 == &str) {
    return false;
  }

  while (std::getline(std::cin, tmp)) {
    if (0 < tmp.size()) {
      transform(tmp.begin(), tmp.end(), tmp.begin(), tolower);
      str += tmp;
    }
  }

  return true;
}

static bool countAlpha(const std::string &str, std::vector<int> &v) {
  if (0x00 == &str || 0x00 == &v) {
    return false;
  }

  if (0 >= v.size()) {
    v.resize(26);
    for (unsigned int i = 0; i < v.size(); i++) {
      v.at(i) = 0;
    }
  }

  char ch;
  int index = 0;
  for (unsigned int i = 0; i < str.size(); i++) {
    ch = str.at(i);
    if (false == std::isalpha(ch))
      continue;
    index = static_cast<int>(ch - 'a');
    v.at(index)++;
  }

  return true;
}

int main() {
  std::string alpha("abcdefghijklmnopqrstuvwxyz");
  std::string str;
  std::vector<int> vec(26);

  for (unsigned int i = 0; i < vec.size(); i++) {
    vec.at(i) = 0;
  }

  if (true == readLines(str)) {
    countAlpha(str, vec);
    for (unsigned int i = 0; i < vec.size(); i++) {
      std::cout << alpha.at(i) << " : " << vec.at(i) << std::endl;
    }
  }

  return (0);
}

terminate called after throwing an instance of 'std::out_of_range'
  what():  vector::_M_range_check: __n (which is 18446744073709551603) >= this->size() (which is 26)


#include <cctype>
#include <iostream>
#include <stdio.h>
using namespace std;

char ch;
int main() {
  long long count[30] = {0};
  while (scanf("%c", &ch) != EOF) {
    if (isalpha(ch)) {
      int num = ch - 'a';
      int num2 = ch - 'A';
      count[num]++;
      count[num2]++;
    }
  }
  for (int i = 0; i <= 25; i++) {
    printf("%c : %d\\n", 'a' + i, count[i]);
  }
}

#include <cctype>
#include <iostream>
#include <stdio.h>
using namespace std;

char ch;
int main() {
  long long count[30] = {0};
  int num;
  while (scanf("%c", &ch) != EOF) {
    if (islower(ch)) {
      num = ch - 'a';
    } else if (isupper(ch)) {
      num = ch - 'A';
    } else {
      continue;
    }
    count[num]++;
  }
  for (int i = 0; i <= 25; i++) {
    printf("%c : %d\\n", 'a' + i, count[i]);
  }
}


#include <cstdio>
#include <iostream>
#include <string>
using namespace std;

int main() {
  int alpha[26];
  char sen[1200];
  char abc[26] = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i',
                  'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r',
                  's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};
  for (int i = 0; i < 26; i++)
    alpha[i] = 0;
  int counter = 0;
  while (1) {
    scanf("%c", &sen[counter]);
    if (sen[counter] == ' ')
      continue;
    if (sen[counter] == '.')
      break;
    if (counter == 1200)
      break;
    counter++;
  }
  for (int i = 0; i < counter; i++) {
    if (isupper(sen[i]))
      sen[i] = tolower(sen[i]);
    switch (sen[i]) {
    case 'a':
      alpha[0]++;
      break;
    case 'b':
      alpha[1]++;
      break;
    case 'c':
      alpha[2]++;
      break;
    case 'd':
      alpha[3]++;
      break;
    case 'e':
      alpha[4]++;
      break;
    case 'f':
      alpha[5]++;
      break;
    case 'g':
      alpha[6]++;
      break;
    case 'h':
      alpha[7]++;
      break;
    case 'i':
      alpha[8]++;
      break;
    case 'j':
      alpha[9]++;
      break;
    case 'k':
      alpha[10]++;
      break;
    case 'l':
      alpha[11]++;
      break;
    case 'm':
      alpha[12]++;
      break;
    case 'n':
      alpha[13]++;
      break;
    case 'o':
      alpha[14]++;
      break;
    case 'p':
      alpha[15]++;
      break;
    case 'q':
      alpha[16]++;
      break;
    case 'r':
      alpha[17]++;
      break;
    case 's':
      alpha[18]++;
      break;
    case 't':
      alpha[19]++;
      break;
    case 'u':
      alpha[20]++;
      break;
    case 'v':
      alpha[21]++;
      break;
    case 'w':
      alpha[22]++;
      break;
    case 'x':
      alpha[23]++;
      break;
    case 'y':
      alpha[24]++;
      break;
    case 'z':
      alpha[25]++;
      break;
    }
  }

  for (int i = 0; i < 26; i++) {
    cout << abc[i] << " : " << alpha[i] << endl;
  }

  return 0;
}

#include <iostream>
#include <string>

using namespace std;

int main() {
  int alpha[26];
  string sen;
  char abc[26] = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i',
                  'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r',
                  's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};
  for (int i = 0; i < 26; i++)
    alpha[i] = 0;

  while (1) {
    getline(cin, sen);
    if (sen.empty())
      break;
    for (int i = 0; i < sen.size(); i++) {
      for (int j = 0; j < 26; j++) {
        if (isupper(sen[i]))
          sen[i] = tolower(sen[i]);
        if (sen[i] == abc[j])
          alpha[abc[j] - 'a']++;
      }
    }
  }
  for (int i = 0; i < 26; i++) {
    cout << abc[i] << " : " << alpha[i] << endl;
  }

  return 0;
}


#include <cstdio>
#include <ctype.h>
#include <iostream>
using namespace std;

int main() {
  char str[1201];
  int ls[26] = {0};

  cin.get(str, 1200);

  for (int i = 0; str[i] != '\\0'; i++)
    if (isalpha(str[i]))
      ls[tolower(str[i]) - 'a']++;

  int character = 0;
  char ch = 'a';
  for (int n : ls) {
    character = int(ch);
    cout << ch << " : " << n << endl;
    character++;
    ch = char(character);
  }
  return 0;
}

#include <ctype.h>
#include <iostream>
#include <stdio.h>

using namespace std;

int main() {
  // your code goes here

  int counts[30] = {0};

  char cs[1201];
  while (scanf("%[^\\n]\\n", cs) != EOF) {
    for (int i = 0; cs[i] != '\\0'; i++) {
      if (isalpha(cs[i])) {
        counts[tolower(cs[i]) - 'a']++;
      }
    }
  }

  for (char c = 'a'; c <= 'z'; c++) {
    printf("%c : %d\\n", c, counts[c - 'a']);
  }
  return 0;
}


#include <cctype>
#include <iostream>
#include <string>
using namespace std;

int main(int argc, const char *argv[]) {
  string sentence;
  int alpha[26] = {0};

  // getline(cin,sentence);
  while (1) {
    getline(cin, sentence);
    for (int i = 0; i < sentence.size(); i++) {
      if (isalpha(sentence[i])) {                   // 文字かどうか判別
        if (isupper(sentence[i])) {                 // 大文字の時↓
          sentence[i] = (char)tolower(sentence[i]); // 小文字を返す
        }
      }
      // cout << sentence[i];
    }
    for (int j = 0; j <= (int)sentence.size(); j++) {
      alpha[sentence[j] - 'a']++; // sentenceに値がある時+する
    }
  }
  for (char ch = 'a'; ch <= 'z'; ch++) {
    cout << ch << " : " << alpha[ch - 'a'] << endl;
  }
  return 0;
}

#include <iostream>
#include <string>
using namespace std;
int main() {
  string str;
  int ab[26] = {};
  int i;
  while (getline(cin, str)) {
    for (i = 0; i < str.size(); i++) {
      if (str[i] >= 'a' && str[i] <= 'z')
        ab[str[i] - 'a']++;
      else if (str[i] >= 'A' && str[i] <= 'Z')
        ab[str[i] - 'A']++;
    }
    // cout << str << endl;
  }
  for (i = 0; i < 26; i++) {
    cout << (char)('a' + i) << " : " << ab[i] << endl;
  }
  return 0;
}


#include <cctype>
#include <cstdio>
#include <iostream>
using namespace std;

int main() {
  while (1) {

    int count[26] = {};

    char ch;
    while (cin >> ch) {
      if (isalpha(ch)) {
        ch = tolower(ch);
        count[ch - 'a'] += 1;
      }
    }

    for (int i = 0; i < 26; i++) {
      printf("%c | %d\\n", count - 'a', count[i]);
    }
  }
  return 0;
}

#include <cctype>
#include <cstdio>
#include <iostream>
using namespace std;

int main() {

  int count[26] = {};
  char ch;

  while (cin >> ch) {
    if (isalpha(ch)) {
      ch = tolower(ch);
      count[ch - 'a'] += 1;
    }
  }

  for (int i = 0; i < 26; i++) {
    printf("%c : %d\\n", i + 'a', count[i]);
  }

  return 0;
}


#include <iostream>
#include <math.h>
#include <stdint.h>
#include <stdio.h>
using namespace std;

int main() {
  int z;
  int x[26] = {};
  char ch;
  while ((ch = getchar()) != EOF) {

    if (ch >= 65 && ch <= 90) {
      z = ch - 'A';
      x[z]++;
    } else if (ch >= 97 && ch <= 122) {
      z = ch - 'a';
      x[z]++;
    }
  }
  while (ch != '.')
    ;
  for (int i = 0; i < 26; i++) {
    printf("%c", 97 + i);
    cout << " "
         << ":"
         << " " << x[i] << "\\n";
  }
  return 0;
}

#include <iostream>
#include <math.h>
#include <stdint.h>
#include <stdio.h>
using namespace std;

int main() {
  int z;
  int x[26] = {};
  string ch;
  while (getline(cin, ch)) {
    for (int j = 0; j < (int)ch.size(); j++) {
      if (ch[j] >= 65 && ch[j] <= 90) {
        z = ch[j] - 'A';
        x[z]++;
      } else if (ch[j] >= 97 && ch[j] <= 122) {
        z = ch[j] - 'a';
        x[z]++;
      }
    }
  }
  for (int i = 0; i < 26; i++) {
    printf("%c", 97 + i);
    cout << " "
         << ":"
         << " " << x[i] << "\\n";
  }
  return 0;
}


#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <fstream>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;

#define REP(i, n) for (int i = 0; i < n; ++i)
#define FOR(i, a, b) for (int i = a; i <= b; ++i)
#define FORR(i, a, b) for (int i = a; i >= b; --i)
#define pi M_PI

typedef long long ll;
typedef vector<int> VI;
typedef vector<ll> VL;
typedef vector<VI> VVI;
typedef pair<int, int> P;
typedef pair<ll, ll> PL;

int main() {
  string s;
  int a[26] = {};
  while (getline(cin, s) && !s.empty()) {
    REP(i, s.length()) {
      if (s[i] < 'a')
        a[s[i] - 'A']++;
      else
        a[s[i] - 'a']++;
    }
  }
  REP(i, 26) { printf("%c : %d\\n", i + 'a', a[i]); }
  return 0;
}

#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <fstream>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;

#define REP(i, n) for (int i = 0; i < n; ++i)
#define FOR(i, a, b) for (int i = a; i <= b; ++i)
#define FORR(i, a, b) for (int i = a; i >= b; --i)
#define pi M_PI

typedef long long ll;
typedef vector<int> VI;
typedef vector<ll> VL;
typedef vector<VI> VVI;
typedef pair<int, int> P;
typedef pair<ll, ll> PL;

int main() {
  string s;
  int a[26] = {};
  while (getline(cin, s) && !s.empty()) {
    REP(i, s.length()) {
      if (s[i] >= 'A' && s[i] <= 'Z')
        a[s[i] - 'A']++;
      else if (s[i] >= 'a' && s[i] <= 'z')
        a[s[i] - 'a']++;
    }
  }
  REP(i, 26) { printf("%c : %d\\n", i + 'a', a[i]); }
  return 0;
}


#include <bits/stdc++.h>
using namespace std;

int main(void) {
  int alphabet[26];
  for (int i = 0; i < 26; i++)
    alphabet[i] = 0;
  char s;
  while (true) {
    scanf("%c", &s);
    if (65 <= s && s <= 90)
      alphabet[s - 65]++;
    else if (97 <= s && s <= 122)
      alphabet[s - 97]++;
    else if (s == 46)
      break;
    else
      continue;
  }
  char c = 'a';
  for (int i = 0; i < 26; i++) {

    cout << (char)(c + i) << " : " << alphabet[i] << endl;
  }
}

#include <bits/stdc++.h>
using namespace std;

int main(void) {
  int alphabet[26];
  for (int i = 0; i < 26; i++)
    alphabet[i] = 0;
  char s;
  while (true) {
    if (scanf("%c", &s) == EOF)
      break;
    else if (65 <= s && s <= 90)
      alphabet[s - 65]++;
    else if (97 <= s && s <= 122)
      alphabet[s - 97]++;
    else
      continue;
  }
  char c = 'a';
  for (int i = 0; i < 26; i++) {
    cout << (char)(c + i) << " : " << alphabet[i] << endl;
  }
}