fork(1) download
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6. char a, b = 'z', c = 'a', d = 'Z', e = 'A';
  7. int f = 1, g = 35;
  8. while(cin >> a){
  9. if(a <= b && a >= c){
  10. cout << a + f;
  11. }
  12. else if(a <= d && a > e){
  13. cout << a + f;
  14. }
  15. else if(a == c && a == e){
  16. cout << a - g;
  17. }
  18. }
  19. return 0;
  20. }
Success #stdin #stdout 0.01s 5328KB
stdin
bnqqdbs





stdout
9911111411410199116