Cat Snuke is learning to write characters.
Today, he practiced writing digits 1 and 9, but he did it the other way around.
You are given a three-digit integer n written by Snuke.
Print the integer obtained by replacing each digit 1 with 9 and each digit 9 with 1 in n.

-----Constraints-----
 - 111 \leq n \leq 999
 - n is an integer consisting of digits 1 and 9.

-----Input-----
Input is given from Standard Input in the following format:
n

-----Output-----
Print the integer obtained by replacing each occurrence of 1 with 9 and each occurrence of 9 with 1 in n.

-----Sample Input-----
119

-----Sample Output-----
991

Replace the 9 in the ones place with 1, the 1 in the tens place with 9 and the 1 in the hundreds place with 9. The answer is 991.
[{"code": "s = list(input())\n\nfor i in range(3):\n  if s[i] == '1':\n    s[i] = '9'\n  else:\n    s[i] = '1'\n\nt = ''\nfor i in range(3):\n  t += s[i]\n  \nprint(t)", "passed": true, "time": 0.24, "memory": 14344.0, "status": "done"}, {"code": "n=list(input())\n\nfor i in range(3):\n    if n[i]==\"1\":\n        n[i]=\"9\"\n        \n    elif n[i]==\"9\":\n        n[i]=\"1\"\n        \nprint((\"\".join(n)))\n", "passed": true, "time": 0.14, "memory": 14324.0, "status": "done"}, {"code": "n = input()\nans = \"\"\nfor s in n:\n  ans += \"9\" if s==\"1\" else \"1\"\nprint(ans)", "passed": true, "time": 0.25, "memory": 14224.0, "status": "done"}, {"code": "a=input()\nprint(a.replace(\"1\",\"8\").replace(\"9\",\"1\").replace(\"8\",\"9\"))", "passed": true, "time": 0.25, "memory": 14300.0, "status": "done"}, {"code": "#!/usr/bin/env python3\n\n\ndef main():\n    N = input()\n\n    ans = ''\n    for n in N:\n        if n == '1':\n            ans += '9'\n        else:\n            ans += '1'\n    print(ans)\n\n\ndef __starting_point():\n    main()\n\n__starting_point()", "passed": true, "time": 0.25, "memory": 13992.0, "status": "done"}, {"code": "n = input()\nans = ''\nfor i in range(3):\n    if n[i] == '1':\n        ans += '9'\n    else:\n        ans += '1'\n\nprint(ans)", "passed": true, "time": 0.15, "memory": 14192.0, "status": "done"}, {"code": "n = input()\nprint(n.replace(\"1\", \"x\").replace(\"9\", \"1\").replace(\"x\", \"9\"))", "passed": true, "time": 0.15, "memory": 14096.0, "status": "done"}, {"code": "n=input()\nprint(n.replace(\"1\",\"a\").replace(\"9\",\"1\").replace(\"a\",\"9\"))", "passed": true, "time": 0.25, "memory": 14300.0, "status": "done"}, {"code": "N = input()\nprint((N.replace(\"1\", \".\").replace(\"9\", \"1\").replace(\".\", \"9\")))\n", "passed": true, "time": 0.24, "memory": 14196.0, "status": "done"}, {"code": "s = input()\n\nans = ''\nfor w in s:\n  if w == '1':\n    ans += '9'\n  else:\n    ans += '1'\n    \nans = int(ans)\nprint(ans)", "passed": true, "time": 0.16, "memory": 14148.0, "status": "done"}, {"code": "n = input()\nans = ''\nfor i in n:\n    if i == '9': ans += '1'\n    else: ans += '9'\nprint(ans)\n", "passed": true, "time": 0.15, "memory": 14224.0, "status": "done"}, {"code": "print(input().replace(\"1\",\"a\").replace(\"9\",\"1\").replace(\"a\",\"9\"))", "passed": true, "time": 0.15, "memory": 14260.0, "status": "done"}, {"code": "#ABC111A\nn = input()\nprint(n.replace(\"1\",\"x\").replace(\"9\",\"1\").replace(\"x\",\"9\"))", "passed": true, "time": 0.15, "memory": 14060.0, "status": "done"}, {"code": "def main():\n    n = input()\n    print(\"\".join(\"9\" if s==\"1\" else \"1\" for s in n))\n\n\nmain()", "passed": true, "time": 0.14, "memory": 14048.0, "status": "done"}, {"code": "n=int(input())\nif (n-n%100)/100==1:\n    n+=800\nelse:\n    n-=800\n\nif (n%100-(n%100)%10)/10==1:\n    n+=80\nelse:\n    n-=80\n\nif n%10==1:\n    n+=8\nelse:\n    n-=8\nprint(n)\n\n\n", "passed": true, "time": 0.15, "memory": 14112.0, "status": "done"}, {"code": "s = list(input())\nfor i in range(3):\n  if s[i] == \"1\":\n    s[i] = \"9\"\n  else:\n    s[i] = \"1\"\nprint(\"\".join(s))", "passed": true, "time": 0.23, "memory": 14188.0, "status": "done"}, {"code": "n = str(input())\nans = ''\nfor i in range(3):\n    if n[i]=='9':\n        ans += '1'\n    else:\n        ans += '9'\nprint(ans)", "passed": true, "time": 0.76, "memory": 14048.0, "status": "done"}, {"code": "s_l = [n for n in input()]\nnew_list = []\nfor i in s_l:\n    if i == '9':\n        new_list.append(1)\n    else:\n        new_list.append(9)\n\nprint(''.join(map(str, new_list)))", "passed": true, "time": 0.14, "memory": 14184.0, "status": "done"}, {"code": "a=input()\nprint(a.replace(\"1\",\"x\").replace(\"9\",\"1\").replace(\"x\",\"9\"))", "passed": true, "time": 0.14, "memory": 14248.0, "status": "done"}, {"code": "s = input()\ns_list=list(s)\nfor i in range(len(s)):\n  if s[i] == \"1\":\n    s_list[i]='9'\n  elif s[i]==\"9\":\n    s_list[i]='1'\nstr_changed=\"\".join(s_list)\nprint(str_changed)\n", "passed": true, "time": 0.15, "memory": 14268.0, "status": "done"}, {"code": "n=list(input())\nfor i in range(3):\n    if n[i]==\"1\":\n        n[i]=9\n    else:\n        n[i]=1\nprint(n[0],n[1],n[2],sep=\"\")", "passed": true, "time": 0.18, "memory": 14128.0, "status": "done"}, {"code": "a = input()\n\nfor i in range(3):\n    if a[i] ==\"1\":\n        a = a[:i]+\"9\"+a[i+1:]\n    elif a[i] ==\"9\":\n        a = a[:i]+\"1\"+a[i+1:]\n\nprint(a)", "passed": true, "time": 0.18, "memory": 14212.0, "status": "done"}, {"code": "n = input()\n\nprint(n.replace(\"1\", \"x\").replace(\"9\", \"1\").replace(\"x\", \"9\"))", "passed": true, "time": 0.26, "memory": 14068.0, "status": "done"}, {"code": "n = input()\n\nn = n.replace(\"9\", \"@\")\nn = n.replace(\"1\", \"9\")\nn = n.replace(\"@\", \"1\")\n\n\nprint((int(n)))\n", "passed": true, "time": 0.15, "memory": 14180.0, "status": "done"}, {"code": "n = input()\nfor c in n:\n  print(10-int(c),end='')\nprint()", "passed": true, "time": 0.14, "memory": 14260.0, "status": "done"}, {"code": "n = input()\nx = list()\nfor i in range(3):\n    if n[i] == \"1\":\n        x.append(\"9\")\n    else:\n        x.append(\"1\")\nprint(x[0] + x[1] + x[2])", "passed": true, "time": 0.14, "memory": 14204.0, "status": "done"}, {"code": "ret = ''\nfor a in input():\n  if a == '1':\n    ret += '9'\n  elif a == '9':\n    ret += '1'\n  else:\n    ret += a\nprint(ret)\n", "passed": true, "time": 0.15, "memory": 14236.0, "status": "done"}, {"code": "a = input()\nl1 = []\nl2 = []\nfor i in range(len(a)):\n  l1.append(a[i:i+1])\nfor i in range(len(a)):\n  l2.append(str(abs(int(l1[i]) - 10)))\nprint(\"\".join(l2))", "passed": true, "time": 0.14, "memory": 14276.0, "status": "done"}, {"code": "f = lambda c : \"1\" if c == \"9\" else \"9\"\n  \nprint(''.join(list(map(f, input()))))", "passed": true, "time": 0.14, "memory": 14324.0, "status": "done"}, {"code": "N = input() #1\u884c\u76ee\u306eN\u3092\u53d6\u5f97\nN=N.translate(str.maketrans({'1': '9', '9': '1'}))\nprint(int(N))", "passed": true, "time": 0.14, "memory": 14244.0, "status": "done"}, {"code": "n = input()\nans = ''\nfor i in range(len(n)):\n  if n[i] == '1':\n    ans += '9'\n  else:\n    ans += '1'\nprint(ans)", "passed": true, "time": 0.14, "memory": 14216.0, "status": "done"}, {"code": "n = list(input())\n\nfor i in range(3):\n    if n[i] == \"1\":\n        n[i] = \"9\"\n    elif n[i] == \"9\":\n        n[i] = \"1\"\nprint(\"\".join(n))", "passed": true, "time": 0.22, "memory": 14248.0, "status": "done"}, {"code": "n = list(input())\nfor i in range(3):\n  if n[i] == \"1\":\n    n[i] = \"9\"\n  elif n[i] == \"9\":\n    n[i] = \"1\"\n    \nprint(\"\".join(n))", "passed": true, "time": 0.22, "memory": 14212.0, "status": "done"}, {"code": "n=int(input())\nif n==111:\n    print(\"999\")\nelif n==119:\n    print(\"991\")\nelif n == 191:\n    print(\"919\")\nelif n==199:\n    print(\"911\")\nelif n==911:\n    print(\"199\")\nelif n==919:\n    print(\"191\")\nelif n==991:\n    print(\"119\")\nelse:\n    print(\"111\")", "passed": true, "time": 0.14, "memory": 14152.0, "status": "done"}, {"code": "n = input()\nans = ''\nfor i in range(3):\n    if n[i] == '9':\n        ans += '1'\n    else:\n        ans += '9'\nprint(ans)\n", "passed": true, "time": 0.15, "memory": 14184.0, "status": "done"}, {"code": "n = int(input())\nprint(1110 - n)", "passed": true, "time": 0.15, "memory": 14132.0, "status": "done"}, {"code": "print(input().replace(\"1\",\"0\").replace(\"9\",\"1\").replace(\"0\",\"9\"))", "passed": true, "time": 0.17, "memory": 14080.0, "status": "done"}, {"code": "S = input()\nnew_s=''\nfor s in S:\n       if s==\"1\":new_s+=\"9\"\n       else:new_s+=\"1\"\nprint(new_s)", "passed": true, "time": 0.22, "memory": 14176.0, "status": "done"}, {"code": "n=input()\nprint(n.replace(\"1\",\"*\").replace(\"9\",\"1\").replace(\"*\",\"9\"))", "passed": true, "time": 0.23, "memory": 14128.0, "status": "done"}, {"code": "\nurl = \"https://atcoder.jp//contests/abc111/tasks/abc111_a\"\n\ndef main():\n    s = input()\n    print((s.translate(str.maketrans({'1': '9', '9': '1'}))))\n    \n    \ndef __starting_point():\n    main()\n\n\n__starting_point()", "passed": true, "time": 0.15, "memory": 14228.0, "status": "done"}, {"code": "print(1110-int(input()))", "passed": true, "time": 0.14, "memory": 14324.0, "status": "done"}, {"code": "a = input()\nprint(a.replace('1', 'x').replace('9', '1').replace('x', '9'))", "passed": true, "time": 0.22, "memory": 14132.0, "status": "done"}, {"code": "n=input()\nans=\"\"\nfor i in n:\n    if i==\"1\":\n        ans+=\"9\"\n    elif i==\"9\":\n        ans+=\"1\"\n    else:\n        ans=i\nprint(int(ans))", "passed": true, "time": 0.85, "memory": 14088.0, "status": "done"}, {"code": "n=input()\nans=n.replace('1','q').replace('9','i').replace('q','9').replace('i','1')\nprint(ans)", "passed": true, "time": 0.14, "memory": 14144.0, "status": "done"}, {"code": "n=input()\n\nans=[]\nfor i in n:\n    if i=='1':\n        ans.append('9')\n    else:\n        ans.append('1')\n\nprint(''.join(ans))", "passed": true, "time": 0.15, "memory": 14324.0, "status": "done"}, {"code": "print(input().replace('1', 'a').replace('9', '1').replace('a', '9'))", "passed": true, "time": 0.79, "memory": 14312.0, "status": "done"}, {"code": "n = input()\nresult = ''\nfor i in n:\n    if i == '1':\n        result += '9'\n    elif i == '9':\n        result += '1'\n\nprint(result)", "passed": true, "time": 0.15, "memory": 14308.0, "status": "done"}, {"code": "n = list(str(input()))\nans = \"\"\nfor i in n:\n    ans += \"1\" if i == \"9\" else \"9\"\nprint(ans)\n\n", "passed": true, "time": 0.14, "memory": 14152.0, "status": "done"}, {"code": "n = input()\nn01 = n.replace('1', 'x')\nn02 = n01.replace('9', 'y')\nn03 = n02.replace('x', '9')\nn04 = n03.replace('y', '1')\nprint(n04)", "passed": true, "time": 0.14, "memory": 14316.0, "status": "done"}, {"code": "n = list(input())\nfor i in range(3):\n    if n[i] == '1':\n        n[i] = '9'\n    elif n[i] == '9':\n        n[i] = '1'\nprint(int(''.join(n)))", "passed": true, "time": 0.14, "memory": 14124.0, "status": "done"}, {"code": "n = input()\nb = ''\nfor i in n:\n    if i == '1':\n        b+='9'\n    else:\n        b+='1'\nprint(b)", "passed": true, "time": 0.24, "memory": 14012.0, "status": "done"}, {"code": "s=input()\nprint(s.translate(str.maketrans({'1': '9', '9': '1'})))", "passed": true, "time": 0.14, "memory": 14100.0, "status": "done"}, {"code": "a = input()\nx = \"\"\nif a[0] == \"1\":\n    x += \"9\"\nelse:\n    x += \"1\"\nif a[1] == \"1\":\n    x += \"9\"\nelse:\n    x += \"1\"\nif a[2] == \"1\":\n    x += \"9\"\nelse:\n    x += \"1\"\nprint(x)", "passed": true, "time": 0.14, "memory": 14216.0, "status": "done"}, {"code": "a=int(input())\nif (a//100)%9==0:\n  b=100\nelse:\n  b=900\nif ((a-(a//100)*100)//10)%9==0:\n  c=10\nelse:\n  c=90\nif (a-(a//10)*10)%9==0:\n  d=1\nelse:\n  d=9\nprint(b+c+d)", "passed": true, "time": 0.24, "memory": 14296.0, "status": "done"}, {"code": "n = input()\na = ''\nfor i in range(len(n)):\n    if n[i] == '1':\n        a += '9'\n    elif n[i] == '9':\n        a += '1'\n        \nprint(a)", "passed": true, "time": 0.14, "memory": 14216.0, "status": "done"}, {"code": "n = input()\n\nm = \"\"\n\nfor x in n:\n    if x == \"1\":\n        m += \"9\"\n    elif x == \"9\":\n        m += \"1\"\n    else:\n        m += x\n\nprint(int(m))", "passed": true, "time": 0.14, "memory": 14116.0, "status": "done"}, {"code": "n = int(input())\nlst_n = list(str(n))\nfor i in range(len(lst_n)):\n    if lst_n[i] == '1':\n        lst_n[i] = '9'\n    elif lst_n[i] == '9':\n        lst_n[i] = '1'\nprint(''.join(lst_n))", "passed": true, "time": 0.14, "memory": 14316.0, "status": "done"}, {"code": "l=list(input())\nfor i in range(len(l)):\n  if l[i]=='1':\n    l[i]='9'\n  elif l[i]=='9':\n    l[i]='1'\nprint((''.join(l)))\n", "passed": true, "time": 0.14, "memory": 14160.0, "status": "done"}, {"code": "n = int(input())\n\nprint(1110 - n)", "passed": true, "time": 0.14, "memory": 14160.0, "status": "done"}, {"code": "n = input()\ns = \"\"\nfor i in range(3):\n    if n[i] == '1':\n        s = s+'9'\n    else:\n        s = s+'1'\nprint(s)", "passed": true, "time": 0.15, "memory": 14076.0, "status": "done"}, {"code": "n = input()\ns = ''\n\nfor i in range(len(n)) :\n  if n[i] == '1':\n    s += '9'\n  \n  elif n[i] == '9':\n    s += '1'\n  \n\nprint(s)  ", "passed": true, "time": 0.15, "memory": 14088.0, "status": "done"}, {"code": "n = input()\nans = ''\n\nfor i in n:\n    if i == '1':\n        tmp = '9'\n    elif i == '9':\n        tmp = '1'\n    else:\n        tmp = i\n    ans += tmp\n\nprint(ans)", "passed": true, "time": 0.14, "memory": 14292.0, "status": "done"}, {"code": "n = input()\nprint((n.translate(str.maketrans({'1': '9', '9': '1'}))))\n", "passed": true, "time": 0.14, "memory": 14140.0, "status": "done"}, {"code": "n=input()\nprint(n.replace('1', 'X').replace('9', '1').replace('X', '9'))", "passed": true, "time": 0.14, "memory": 14120.0, "status": "done"}, {"code": "n = input()\nout = ''\nfor s in n:\n    if s == '1':\n        out += '9'\n    else:\n        out += '1'\nprint(out)", "passed": true, "time": 0.14, "memory": 14244.0, "status": "done"}, {"code": "n = str(input())\nN = n.replace('9','x').replace('1','9').replace('x','1')\nprint(N)", "passed": true, "time": 0.55, "memory": 14092.0, "status": "done"}, {"code": "n = list(input())\n\nfor i in range(len(n)):\n    if n[i] == '1':\n        n[i] = '9'\n    else:\n        n[i] = '1'\n\nprint(''.join(n))", "passed": true, "time": 0.15, "memory": 14328.0, "status": "done"}, {"code": "a = input()\nfor i in range(len(a)):\n    if a[i] == '1':\n        a = a[:i] + '9' + a[i+1:]\n    elif a[i] == '9':\n        a = a[:i] + '1' + a[i+1:]\nprint(a)\n", "passed": true, "time": 0.25, "memory": 14304.0, "status": "done"}, {"code": "# ABC111\n# A AtCoder Beginner Contest999\nn = list(input())\nfor i in range(len(n)):\n    if n[i] == \"1\":\n        n.pop(i)\n        n.insert(i, \"9\")\n    elif n[i] == \"9\":\n        n.pop(i)\n        n.insert(i,\"1\")\nprint((int(\"\".join(n))))\n", "passed": true, "time": 0.14, "memory": 14308.0, "status": "done"}, {"code": "print(input().replace(\"1\",\"X\").replace(\"9\",\"1\").replace(\"X\",\"9\"))", "passed": true, "time": 0.14, "memory": 14336.0, "status": "done"}, {"code": "n = input()\nn = n.replace(\"9\",\"4\").replace(\"1\",\"9\").replace(\"4\",\"1\")\nprint(n)", "passed": true, "time": 0.15, "memory": 14224.0, "status": "done"}, {"code": "n = input()\nn_list = list(n)\nfor i in range(3):\n    \n    if n_list[i] == '1':\n        n_list[i] = '9'\n    elif n_list[i] == '9':\n        n_list[i] = '1'\nn_c = \"\".join(n_list)\nprint(n_c)", "passed": true, "time": 0.14, "memory": 14216.0, "status": "done"}, {"code": "n = int(input())\nprint(1110-n)", "passed": true, "time": 0.23, "memory": 14224.0, "status": "done"}, {"code": "a=input()\nprint(a.replace('1','x').replace('9','1').replace('x','9'))", "passed": true, "time": 0.14, "memory": 14044.0, "status": "done"}, {"code": "n=input()\ni=0\na=n[i].replace('1', '9') if n[i]=='1' else n[i].replace('9', '1')\ni=1\nb=n[i].replace('1', '9') if n[i]=='1' else n[i].replace('9', '1')\ni=2\nc=n[i].replace('1', '9') if n[i]=='1' else n[i].replace('9', '1')\nprint(a+b+c)", "passed": true, "time": 0.14, "memory": 14100.0, "status": "done"}, {"code": "n = int(input())\nprint(1110-n)", "passed": true, "time": 0.14, "memory": 14120.0, "status": "done"}, {"code": "n=list(input())\n\nfor i in range(3):\n  if n[i]==\"1\":\n    n[i]=\"9\"\n  else:\n    n[i]=\"1\"\n    \nS=\"\"\n\nfor j in range(3):\n  S+=n[j]\nprint(S)", "passed": true, "time": 0.22, "memory": 14288.0, "status": "done"}, {"code": "n = str(input())\nans = ''\nfor i in range(3):\n    if n[i] == '1':\n        ans += '9'\n    elif n [i] == '9':\n        ans += '1'\nprint(int(ans))", "passed": true, "time": 0.14, "memory": 14328.0, "status": "done"}, {"code": "a = input()\nprint(a.replace(\"1\", \"x\").replace(\"9\", \"1\").replace(\"x\", \"9\"))", "passed": true, "time": 0.14, "memory": 14088.0, "status": "done"}, {"code": "a = int(input())\nprint((1110 - a))\n", "passed": true, "time": 0.14, "memory": 14232.0, "status": "done"}, {"code": "print(input().replace('1','0').replace('9','1').replace('0','9'))", "passed": true, "time": 0.14, "memory": 14100.0, "status": "done"}, {"code": "s = list(input())\ndef slv(i):\n    if i == 1 or i == 9:\n        return 10-i\n    else:\n        return i\nprint(str(slv(int(s[0])))+str(slv(int(s[1])))+str(slv(int(s[2]))))", "passed": true, "time": 0.14, "memory": 14268.0, "status": "done"}, {"code": "print(1110 - int(input()))", "passed": true, "time": 0.14, "memory": 14184.0, "status": "done"}, {"code": "print(1110-int(input()))", "passed": true, "time": 0.14, "memory": 14304.0, "status": "done"}, {"code": "n = input()\n\nprint(n.replace(\"1\", \"x\").replace(\"9\", \"1\").replace(\"x\", \"9\"))", "passed": true, "time": 0.14, "memory": 14304.0, "status": "done"}, {"code": "a = list(input())\nfor i in a:\n    if i == \"1\":\n        print(\"9\", end=\"\")\n    else:\n        print(\"1\", end=\"\")\nprint()", "passed": true, "time": 0.14, "memory": 14268.0, "status": "done"}, {"code": "n = list(input())\nans = ''\n\nfor w in n:\n    if w == '1':\n        ans += '9'\n    else:\n        ans += '1'\n\nprint(ans)\n", "passed": true, "time": 0.21, "memory": 14256.0, "status": "done"}, {"code": "moji = str(input())\nans = \"\"\nfor i in range(len(moji)):\n    ans += (\"1\",\"9\")[moji[i]==\"1\"]\nprint(ans)", "passed": true, "time": 0.14, "memory": 14348.0, "status": "done"}, {"code": "n = str(input())\n\nans = ''\nfor i in range(3):\n    if n[i] == '1':\n        ans += '9'\n    else:\n        ans += '1'\nprint(int(ans))", "passed": true, "time": 0.14, "memory": 14248.0, "status": "done"}, {"code": "n = input()\nn = n.replace(\"1\",\"x\")\nn = n.replace(\"9\",\"1\")\nn = n.replace(\"x\",\"9\")\nprint(n)", "passed": true, "time": 0.14, "memory": 14384.0, "status": "done"}, {"code": "print(input().replace('9','2').replace('1','9').replace('2','1'))", "passed": true, "time": 0.14, "memory": 14336.0, "status": "done"}, {"code": "print(1110-int(input()))", "passed": true, "time": 0.14, "memory": 14180.0, "status": "done"}, {"code": "n = input()\n\nfor i in range(len(n)):\n    if n[i] == '1':\n        n = n[:i] + '9' + n[i+1:]\n    else:\n        n = n[:i] + '1' + n[i+1:]\n\nprint(int(n))", "passed": true, "time": 0.14, "memory": 14128.0, "status": "done"}, {"code": "num_str = input()\nprint((num_str.replace('1', 'x').replace('9', '1').replace('x', '9')))\n", "passed": true, "time": 0.14, "memory": 14104.0, "status": "done"}, {"code": "s=input()\nans=[]\nfor i in range(3):\n  if s[i]=='1':\n    ans.append('9')\n  else:\n    ans.append('1')\nprint(''.join(ans))", "passed": true, "time": 0.14, "memory": 14248.0, "status": "done"}, {"code": "S = input()\n\nans = \"\"\nfor s in S:\n    if s == \"1\":\n        ans += \"9\"\n    if s == \"9\":\n        ans += \"1\"\nprint(ans)", "passed": true, "time": 0.14, "memory": 14244.0, "status": "done"}, {"code": "n=input()\nfor i in range(3):\n    if n[i]=='1':\n        print('9',end='')\n    else:\n        print('1',end='')\nprint()\n", "passed": true, "time": 0.14, "memory": 14236.0, "status": "done"}]