---
# System prepended metadata

title: 12009 - Caesar salad
tags: [ASCII]

---

# 12009 - Caesar salad
>author: Utin
###### tags: `ASCII`

---

## Brief
See the code below

## Solution 0

```c=
#include <stdio.h>

int main() {
    char s[3];
    long long int n;
    scanf("%s %lld", s, &n);
    for(int i=0; i<3; i++) {
        if(s[i]+n > 'Z') {
            printf("%c", ((s[i]+n-'A')%26 + 'A'));
        }
        else if(s[i]+n < 'A') {
            if(('A'-(s[i]+n))%26 == 0) {
                printf("%c", '[' - ('A'-(s[i]+n))%26-26);
            }
            else {
                printf("%c", '[' - ('A'-(s[i]+n))%26);
            }
        }
        else {
            printf("%c", s[i]+n);
        }
    }
    printf("\n");
}
// By Utin
```

## Reference