def encrypt_nums(a: int, b: int):
return f"{a + 1} {b + 1}"
def decrypt_nums(c: int, d: int):
return f"{c - 1} {d - 1}"
def encrypt():
s = input().split()
a = int(s[0])
b = int(s[1])
print(f"{encrypt_nums(a, b)}")
def decrypt():
s = input().split()
c = int(s[0])
d = int(s[1])
print(f"{decrypt_nums(c, d)}")
def main():
mode = input()
if mode == "Algosia":
encrypt()
else:
decrypt()
main()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | def encrypt_nums(a: int, b: int): return f"{a + 1} {b + 1}" def decrypt_nums(c: int, d: int): return f"{c - 1} {d - 1}" def encrypt(): s = input().split() a = int(s[0]) b = int(s[1]) print(f"{encrypt_nums(a, b)}") def decrypt(): s = input().split() c = int(s[0]) d = int(s[1]) print(f"{decrypt_nums(c, d)}") def main(): mode = input() if mode == "Algosia": encrypt() else: decrypt() main() |
English