rotate digit 180 degree



d=input().strip()

t=''

for i in d:

    if i=='2':

        t+='5'

    elif i=='5':

        t+='2'

    elif i=='9':

        t+='6'

    elif i=='6':

        t+='9'

    else:

        t+=i

print(int(d)+int(t))

Post a Comment

0 Comments