Back to task

125 symbols python3
Fri Oct 9 16:03:52 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,R(str(s))][s!=-30])


Leave a comment

Parsed as Markdown

Login to leave a comment