# Enter your code here. Read input from STDIN. Print output to STDOUT a = int ( input ()) b = int ( input ()) c = int ( input ()) d = int ( input ()) print ((a**b)+ (c**d))
# Enter your code here. Read input from STDIN. Print output to STDOUT from collections import deque def piling(d): while d : large = None if d[ -1 ] > d[ 0 ]: large = d.pop() else : large = d.popleft() if len (d) == 0 : return "Yes" ...
n = int ( input ()) s = set ( map ( int , input ().split())) for i in range ( int ( input ())): inp = input () if inp == "pop" : s.pop() else : command , value = inp.split() if command == "discard" : s.discard( int (value)) else : s.remove( int (value)) print ( sum (s))