Back to task

130 symbols python3
Fri Oct 9 15:44:05 2015 BogdanShevchenko
def R(s):s=s[::-1];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