from cs50 import get_string
import sys

if len(sys.argv)!=2 :
    print("usage: ./caesar n")
    sys.exit(1)

n=int(sys.argv[1])
plaintext=get_string("plaintext: ")

print("ciphertext: ",end="")

for i in plaintext:
    if not i.isalpha():
        print(i,end="")
        continue

    if i.isupper():
        m=65 #big
    else:
        m=97 #small

    x=ord(i)-m #a->97
    y=(x+n)%26

    print(chr(y+m),end="") #97->a

print()

8e776b5b3a59c3b39a8b947e5b5bfeec51ac7a26
<mask token>

<mask token>
if len(sys.argv) != 2:
    print('usage: ./caesar n')
    sys.exit(1)
<mask token>
print('ciphertext: ', end='')
for i in plaintext:
    if not i.isalpha():
        print(i, end='')
        continue
    if i.isupper():
        m = 65
    else:
        m = 97
    x = ord(i) - m
    y = (x + n) % 26
    print(chr(y + m), end='')
print()

<mask token>
if len(sys.argv) != 2:
    print('usage: ./caesar n')
    sys.exit(1)
n = int(sys.argv[1])
plaintext = get_string('plaintext: ')
print('ciphertext: ', end='')
for i in plaintext:
    if not i.isalpha():
        print(i, end='')
        continue
    if i.isupper():
        m = 65
    else:
        m = 97
    x = ord(i) - m
    y = (x + n) % 26
    print(chr(y + m), end='')
print()

from cs50 import get_string
import sys
if len(sys.argv) != 2:
    print('usage: ./caesar n')
    sys.exit(1)
n = int(sys.argv[1])
plaintext = get_string('plaintext: ')
print('ciphertext: ', end='')
for i in plaintext:
    if not i.isalpha():
        print(i, end='')
        continue
    if i.isupper():
        m = 65
    else:
        m = 97
    x = ord(i) - m
    y = (x + n) % 26
    print(chr(y + m), end='')
print()

from cs50 import get_string
import sys

if len(sys.argv)!=2 :
    print("usage: ./caesar n")
    sys.exit(1)

n=int(sys.argv[1])
plaintext=get_string("plaintext: ")

print("ciphertext: ",end="")

for i in plaintext:
    if not i.isalpha():
        print(i,end="")
        continue

    if i.isupper():
        m=65 #big
    else:
        m=97 #small

    x=ord(i)-m #a->97
    y=(x+n)%26

    print(chr(y+m),end="") #97->a

print()
