1434 - 集合求和
Description

给定一个集合 ss(集合元素数量 30\le 30),求出此集合所有子集元素之和。

Input

集合中的元素(元素 1000\le 1000

Output

ss 所有子集元素之和。

Examples

Input
复制

2 3

Output
复制

10
Hint

子集为:,{2},{3},{2,3}\varnothing, \{ 2 \}, \{ 3 \}, \{ 2, 3 \},和为 2+3+2+3=102 + 3 + 2 + 3 = 10


题目参数
Time Limit 1 second
Memory Limit 128 MB
提交次数 77
通过次数 25