Back to task

143 symbols python3
Fri Oct 9 15:43:21 2015 BogdanShevchenko
def R(s):s="".join(reversed(s));return int(s) if s[-1]!='-' else -int(s[:-1])
s=sum(map(R,input().split()))
print(-13 if s==-30 else R(str(s)))


Leave a comment

Parsed as Markdown

Login to leave a comment