ZhenlongDai/ACPR huggingface dataset:
Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians

from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from functools import reduce
from bisect import bisect_left, insort_left
from heapq import heapify, heappush, heappop

INPUT = lambda: sys.stdin.readline().rstrip()
INT = lambda: int(INPUT())
MAP = lambda: map(int, INPUT().split())
S_MAP = lambda: map(str, INPUT().split())
LIST = lambda: list(map(int, INPUT().split()))
S_LIST = lambda: list(map(str, INPUT().split()))
ZIP = lambda: zip(*(MAP() for _ in range(n)))

sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7


def main():
    a = 0
    print(a + a ** 2 + a **3)


if __name__ == '__main__':
    main()


Failing test case input:
125

Expected output:
1968875


Actual output:
0


Fixed submission (verdict: Accepted):
import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians

from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from functools import reduce
from bisect import bisect_left, insort_left
from heapq import heapify, heappush, heappop

INPUT = lambda: sys.stdin.readline().rstrip()
INT = lambda: int(INPUT())
MAP = lambda: map(int, INPUT().split())
S_MAP = lambda: map(str, INPUT().split())
LIST = lambda: list(map(int, INPUT().split()))
S_LIST = lambda: list(map(str, INPUT().split()))
ZIP = lambda: zip(*(MAP() for _ in range(n)))

sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7


def main():
    a = INT()
    print(a + a ** 2 + a **3)


if __name__ == '__main__':
    main()

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
print(a+a**a+a**a*a)

Failing test case input:
-20

Expected output:
-7620


Actual output:
-20.0


Fixed submission (verdict: Accepted):
a = int(input())
print(a+a**2+a**3)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a=input()
print("a+a*a+a*a*a")

Failing test case input:
-1

Expected output:
-1


Actual output:
a+a*a+a*a*a


Fixed submission (verdict: Accepted):
a=int(input())
b= a+a*a+a*a*a
print(b)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a=int(input("a="))
print(a+a**2+a**3)

Failing test case input:
-65

Expected output:
-270465


Actual output:
a=-270465


Fixed submission (verdict: Accepted):
a=int(input())
print(a+a**2+a**3)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
b = a + a ** 2 + a ** 3


Failing test case input:
102

Expected output:
1071714


Actual output:

Fixed submission (verdict: Accepted):
a = int(input())
b = a + a ** 2 + a ** 3
print (b)
Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
print(a+a^2+a^3)

Failing test case input:
-30

Expected output:
-26130


Actual output:
35


Fixed submission (verdict: Accepted):
a = int(input())
print(a+(a*a)+(a*a*a))

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
a += a**2
a += a**3
print(a)

Failing test case input:
96

Expected output:
894048


Actual output:
807474668640


Fixed submission (verdict: Accepted):
a = int(input())

print(a + a**2 + a**3)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
sum = 0
for i in range(a):
    sum += a ** (i+1)
    if i == 2:
        break
print(int(sum))

Failing test case input:
-15

Expected output:
-3165


Actual output:
0


Fixed submission (verdict: Accepted):
a = int(input())
sum = 0
for i in range(3):
    sum += a ** (i+1)
print(int(sum))

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())

print(n ** 6)

Failing test case input:
238

Expected output:
13538154


Actual output:
181744694737984


Fixed submission (verdict: Accepted):
n = int(input())
print(n + n**2 + n**3)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
print(a+a^2+a^3)

Failing test case input:
95

Expected output:
866495


Actual output:
220


Fixed submission (verdict: Accepted):
a = int(input())
print(a+a**2+a**3)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
out = a + a^2 + a^3
print(out)

Failing test case input:
-16

Expected output:
-3856


Actual output:
17


Fixed submission (verdict: Accepted):
a = int(input())
out = a + a**2 + a**3
print(out)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a=int(input())
print(a+a^2+a^3)

Failing test case input:
145

Expected output:
3069795


Actual output:
434


Fixed submission (verdict: Accepted):
a=int(input())
print(a+a**2+a**3)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = 1
a = int(a)
x = a + a**2 + a**3
print(x)

Failing test case input:
191

Expected output:
7004543


Actual output:
3


Fixed submission (verdict: Accepted):
a = int(input())
x = a + a**2 + a**3
print(x)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
a += a**2
a += a*3
print(a)

Failing test case input:
429

Expected output:
79138059


Actual output:
737880


Fixed submission (verdict: Accepted):
a = int(input())

print(a + a**2 + a**3)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
i = int(input())
print(i + i*2 + i*3)

Failing test case input:
238

Expected output:
13538154


Actual output:
1428


Fixed submission (verdict: Accepted):
i = int(input())
print(i + i**2 + i**3)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
print(a+a^2+a^3)

Failing test case input:
251

Expected output:
15876503


Actual output:
264


Fixed submission (verdict: Accepted):
a = int(input())
print(a+a*a+a*a*a)
Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
print(a+a^2+a^3)

Failing test case input:
-6

Expected output:
-186


Actual output:
11


Fixed submission (verdict: Accepted):
a = int(input())
s = a+a**2+a**3
print(s)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())

print(a + a^2 + a^3)

Failing test case input:
-14

Expected output:
-2562


Actual output:
19


Fixed submission (verdict: Accepted):
a = int(input())
 
print(a + a**2 + a**3)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a=int(input())
print(a+a^2+a^3)

Failing test case input:
290

Expected output:
24473390


Actual output:
867


Fixed submission (verdict: Accepted):
a=int(input())
print(a+a**2+a**3)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())

print(a+a^2+a^3)

Failing test case input:
95

Expected output:
866495


Actual output:
220


Fixed submission (verdict: Accepted):
a = int(input())
     
print(a+a**2+a**3)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
ans = (a+a*2+a*3)
print(ans)

Failing test case input:
169

Expected output:
4855539


Actual output:
1014


Fixed submission (verdict: Accepted):
a = int(input())
ans = a+a**2+a**3
print(ans)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
s = 0
for i in range(1,4):
  s += n**i

Failing test case input:
-47

Expected output:
-101661


Actual output:

Fixed submission (verdict: Accepted):
n = int(input())
s = 0
for i in range(1,4):
  s += n**i
print(s)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
output = a + a^2 + a^3
print(output)

Failing test case input:
106

Expected output:
1202358


Actual output:
187


Fixed submission (verdict: Accepted):
a = int(input())
output = a + a**2 + a**3
print(output)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())

a = a + a^2 + a^3

Failing test case input:
-28

Expected output:
-21196


Actual output:

Fixed submission (verdict: Accepted):
a = int(input())

a = a + a**2 + a**3
print(a)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a =int(input())

print(a+a**2+2**3)

Failing test case input:
-32

Expected output:
-31776


Actual output:
1000


Fixed submission (verdict: Accepted):
a = int(input())

print(a+a**2+a**3)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a=int(input())
t=1+a+a^2
print(t*a)

Failing test case input:
-28

Expected output:
-21196


Actual output:
1484


Fixed submission (verdict: Accepted):
a=int(input())
t=1+a+a**2
print(t*a)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import sys

a = int(input())
print('hello')
print(a + a * a + a * a * a)


Failing test case input:
233

Expected output:
12703859


Actual output:
hello
12703859


Fixed submission (verdict: Accepted):
import sys

a = int(input())
print('hello', file=sys.stderr)
print(a + a * a + a * a * a)
Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())

print(n*pow(n, 2)*pow(n, 3))

Failing test case input:
112

Expected output:
1417584


Actual output:
1973822685184


Fixed submission (verdict: Accepted):
n = int(input())

print(n + pow(n, 2) + pow(n, 3))

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
print(int(a+a^2+a^3))

Failing test case input:
1109

Expected output:
1365169019


Actual output:
3326


Fixed submission (verdict: Accepted):
a = int(input())
print(int(a+a**2+a**3))

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input("整数を入力してください"))
answer = a+a*a+a*a*a
print("答えは",answer)

Failing test case input:
-26

Expected output:
-16926


Actual output:
整数を入力してください答えは -16926


Fixed submission (verdict: Accepted):
a = int(input())
answer = a+a*a+a*a*a
print(answer)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A=int(input())
sums=0
for i in range(1,4):
  sums += A**i
  print(sums)
print(sums)

Failing test case input:
-19

Expected output:
-6517


Actual output:
-19
342
-6517
-6517


Fixed submission (verdict: Accepted):
A=int(input())
sums=0
for i in range(1,4):
  sums += A**i
  
print(sums)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())

class calculate:
    def __init__(self,a):
        self.check = a
    
    def get_ans(self,a):
        return a + a**2 + a**3

valuable = calculate(a)



ans = valuable.get_ans(10)

print(ans)

Failing test case input:
-8

Expected output:
-456


Actual output:
1110


Fixed submission (verdict: Accepted):
a = int(input())

class calculate:
    def __init__(self,a):
        self.check = a
    
    def get_ans(self,a):
        return a + a**2 + a**3

valuable = calculate(a)



ans = valuable.get_ans(a)

print(ans)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input("Enter an integer : "))
s=a**2
t=a**3
print(a+s+t)

Failing test case input:
-11

Expected output:
-1221


Actual output:
Enter an integer : -1221


Fixed submission (verdict: Accepted):
a = int(input(""))
s=a**2
t=a**3
print(a+s+t)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a=int(input())
ans=a+a*a+a**2
print(ans)

Failing test case input:
125

Expected output:
1968875


Actual output:
31375


Fixed submission (verdict: Accepted):
a=int(input())
ans=a+a*a+a**3
print(ans)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a=int(input())
print(a+a^2+a^3)

Failing test case input:
165

Expected output:
4519515


Actual output:
494


Fixed submission (verdict: Accepted):
a=int(input())
print(a+a*a+a*a*a)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
print(a*(a**2)*(a**3))

Failing test case input:
238

Expected output:
13538154


Actual output:
181744694737984


Fixed submission (verdict: Accepted):
a = int(input())
print(a+(a**2)+(a**3))
Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a=int(input())
print(a+a**2)

Failing test case input:
191

Expected output:
7004543


Actual output:
36672


Fixed submission (verdict: Accepted):
a=int(input())
print(a+a**2+a**3)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
a + a ** 2 + a ** 3

Failing test case input:
-3

Expected output:
-21


Actual output:

Fixed submission (verdict: Accepted):
a = int(input())
b = a + a ** 2 + a ** 3
print(b)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
total = a + a**2 + a**3
print(a)

Failing test case input:
112

Expected output:
1417584


Actual output:
112


Fixed submission (verdict: Accepted):
a = int(input())
total = a + a**2 + a**3
print(total)

Problem: p02621
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
n = int(input())
print(n+(n**n)+(n*n*n))

Failing test case input:
-14

Expected output:
-2562


Actual output:
-2758.0


Fixed submission (verdict: Accepted):
n = int(input())
print(n+(n**2)+(n**3))

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
print(a + a * 2 + a * 3)

Failing test case input:
-33

Expected output:
-34881


Actual output:
-198


Fixed submission (verdict: Accepted):
a = int(input())
print(a + a ** 2 + a ** 3)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
print(a+a^2+a^3)

Failing test case input:
-35

Expected output:
-41685


Actual output:
102


Fixed submission (verdict: Accepted):
a = int(input())
print(a+a**2+a**3)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())

ans = a + a^2 + a^3

print(ans)

Failing test case input:
-5

Expected output:
-105


Actual output:
8


Fixed submission (verdict: Accepted):
a = int(input())

ans = a + a*a + a*a*a
ans = int(ans)

print(ans)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
print(a+a^2+a^3)

Failing test case input:
95

Expected output:
866495


Actual output:
220


Fixed submission (verdict: Accepted):
a = int(input())
print(int(a+a*a+a*a*a))

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())

print(int(a*(a*(a+1))))

Failing test case input:
-17

Expected output:
-4641


Actual output:
-4624


Fixed submission (verdict: Accepted):
a = int(input())
print(int(a+a*a+a*a*a))

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a=int(input())
ans=a+a**2+a**3
print("ans")

Failing test case input:
251

Expected output:
15876503


Actual output:
ans


Fixed submission (verdict: Accepted):
a=int(input())
ans=a+a**2+a**3
print(ans)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
b = a + a^2 + a^3
print(int(b))

Failing test case input:
-36

Expected output:
-45396


Actual output:
101


Fixed submission (verdict: Accepted):
a = int(input())
b = a + a*a + a*a*a
print(int(b))
Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
print(a^3 + a^2 + a)

Failing test case input:
302

Expected output:
27635114


Actual output:
303


Fixed submission (verdict: Accepted):
a = int(input())
print(a**3 + a**2 + a)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def _main(a):
    return a + a ** 2 + a ** 3


if __name__ == "__main__":
    _main(int(input()))


Failing test case input:
-28

Expected output:
-21196


Actual output:

Fixed submission (verdict: Accepted):
def _main(a):
    print(int(a + a ** 2 + a ** 3))


if __name__ == "__main__":
    _main(int(input()))

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
t=n+n^2+1
print(t*n)

Failing test case input:
-35

Expected output:
-41685


Actual output:
2485


Fixed submission (verdict: Accepted):
a=int(input())
t=1+a+a**2
print(t*a)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a=input()

a1=int(a)

print(a1+(a1**a1)+(a1*a1*a1))

Failing test case input:
-3

Expected output:
-21


Actual output:
-30.037037037037038


Fixed submission (verdict: Accepted):
a=input()

a1=int(a)

b=a1+(a1*a1)+(a1*a1*a1)

print(b)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
t=int(input())
print(int(t+(t^2)+(t^3)))

Failing test case input:
-13

Expected output:
-2041


Actual output:
-44


Fixed submission (verdict: Accepted):
t=int(input())
print(t+(t**2)+(t**3))

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
print(a+a^2+a^3);

Failing test case input:
-9

Expected output:
-657


Actual output:
20


Fixed submission (verdict: Accepted):
a = int(input())
print(int(a+a**2+a**3))

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):


a= int(input("a::"))
print(a+ pow(a, 2)+ pow(a, 3))


Failing test case input:
-14

Expected output:
-2562


Actual output:
a::-2562


Fixed submission (verdict: Accepted):


a= int(input("\n"))
print(a+ pow(a, 2)+ pow(a, 3))

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a=int(input())
b=a**a
print(int(a+b+a*b))

Failing test case input:
-33

Expected output:
-34881


Actual output:
-33


Fixed submission (verdict: Accepted):
a=int(input())
b=a*a
print(int(a+b+a*b))

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())

ans = a + a^2 + a^3
ans = int(ans)

print(ans)


Failing test case input:
302

Expected output:
27635114


Actual output:
879


Fixed submission (verdict: Accepted):
a = int(input())

ans = a + a*a + a*a*a
ans = int(ans)

print(ans)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A = int(input("Input a value for 'a': "))
FINAL = A + (A*A) + (A*A*A)
print(FINAL)


Failing test case input:
-30

Expected output:
-26130


Actual output:
Input a value for 'a': -26130


Fixed submission (verdict: Accepted):
A = int(input())
FINAL = A + (A*A) + (A*A*A)
print(FINAL)
Problem: p02621
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
a=int(input())
print(a*2+a+a*3)

Failing test case input:
-30

Expected output:
-26130


Actual output:
-180


Fixed submission (verdict: Accepted):
a=int(input())
print(a**2+a+a**3)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())

print(a + a*2 + a*3)

Failing test case input:
853

Expected output:
621378939


Actual output:
5118


Fixed submission (verdict: Accepted):
a = int(input())

print(a + a**2 + a**3)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
a = int(a ** 3)
print(a)



Failing test case input:
488

Expected output:
116452904


Actual output:
116214272


Fixed submission (verdict: Accepted):
a = int(input())

b = int(a + a ** 2 + a ** 3)
print(b)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x = int(input())
print(x+x^2+x^3)

Failing test case input:
-30

Expected output:
-26130


Actual output:
35


Fixed submission (verdict: Accepted):
x = int(input())
print(x + x**2 + x**3)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def calc(num):
    return num+(num**2)+(num**3)

def start():
    num = int(input())
    return calc(num)

start()

Failing test case input:
-35

Expected output:
-41685


Actual output:

Fixed submission (verdict: Accepted):
def calc(num):
    return num+(num**2)+(num**3)

def start():
    num = int(input())
    print(calc(num), end="")

start()

Problem: p02621
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
a=int(input())
print(a**4-a)

Failing test case input:
165

Expected output:
4519515


Actual output:
741200460


Fixed submission (verdict: Accepted):
a=int(input())
print(a+a*a+a*a*a)

Problem: p02621
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):

import sys
import math
from bisect import bisect_left
from bisect import bisect_right
from collections import defaultdict
from heapq import heappop, heappush
import itertools
from decimal import *

input = sys.stdin.readline

def inputInt(): return int(input())
def inputMap(): return map(int, input().split())
def inputList(): return list(map(int, input().split()))
def inputStr(): return input()[:-1]

inf = float('inf')
mod = 1000000007




def main():
	a = inputInt()

	print(a + a**2 + 2**3)





if __name__ == "__main__":
	main()


Failing test case input:
125

Expected output:
1968875


Actual output:
15758


Fixed submission (verdict: Accepted):

import sys
import math
from bisect import bisect_left
from bisect import bisect_right
from collections import defaultdict
from heapq import heappop, heappush
import itertools
from decimal import *

input = sys.stdin.readline

def inputInt(): return int(input())
def inputMap(): return map(int, input().split())
def inputList(): return list(map(int, input().split()))
def inputStr(): return input()[:-1]

inf = float('inf')
mod = 1000000007




def main():
	a = inputInt()

	print(a + (a**2) + (a**3))





if __name__ == "__main__":
	main()
Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
print(int(a+a^2+a^3))

Failing test case input:
-26

Expected output:
-16926


Actual output:
39


Fixed submission (verdict: Accepted):
a = int(input())
print(int(a+a**2+a**3))

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a=int(input())
a+=(a*a)
a+=(a*a*a)
print(a)

Failing test case input:
125

Expected output:
1968875


Actual output:
3906984390750


Fixed submission (verdict: Accepted):
a=int(input())
ans=a
ans+=(a*a)
ans+=(a*a*a)
print(ans)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())

print(N + N ^ 2 + N ^ 3)


Failing test case input:
-13

Expected output:
-2041


Actual output:
16


Fixed submission (verdict: Accepted):
N = int(input())

print(N + N ** 2 + N ** 3)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
ans = (a + (a**2) + (a**3))

Failing test case input:
251

Expected output:
15876503


Actual output:

Fixed submission (verdict: Accepted):

a = int(input())
ans = a + a**2 + a**3
print(ans)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
b = a + a ** 2 + a ** 10


Failing test case input:
488

Expected output:
116452904


Actual output:

Fixed submission (verdict: Accepted):
a = int(input())
b = a + a ** 2 + a ** 3
print (b)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())

print(N *+ N*N + N*N*N)

Failing test case input:
238

Expected output:
13538154


Actual output:
26962544


Fixed submission (verdict: Accepted):
N = int(input())

print(N + N**2 + N**3)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a=int(input())
print(a,a*a,a**3)

Failing test case input:
-32

Expected output:
-31776


Actual output:
-32 1024 -32768


Fixed submission (verdict: Accepted):
a=int(input())
print(a+a*a+a**3)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
ans = (a+a*2+a*3)
print(ans)


Failing test case input:
-19

Expected output:
-6517


Actual output:
-114


Fixed submission (verdict: Accepted):
a = int(input())
ans = a+a**2+a**3
print(ans)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import sys
input = sys.stdin.readline


c = int(input())
print( c*6 )

Failing test case input:
95

Expected output:
866495


Actual output:
570


Fixed submission (verdict: Accepted):
import sys
input = sys.stdin.readline


c = int(input())
print( c+c**2+c**3 )

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
b = int(a + a^2 + a^3)
print(b)

Failing test case input:
-28

Expected output:
-21196


Actual output:
45


Fixed submission (verdict: Accepted):
a = int(input())
b = int(a + a * a + a * a * a)
print(b)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
ans = a+a*2+a*3
print(ans)


Failing test case input:
276

Expected output:
21101028


Actual output:
1656


Fixed submission (verdict: Accepted):
a = int(input())
ans = a+a**2+a**3
print(ans)
Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a=int(input())

 
print(a+1**2+a**3)

Failing test case input:
-13

Expected output:
-2041


Actual output:
-2209


Fixed submission (verdict: Accepted):
a=int(input())
print(a+a*a+a*a*a)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())

ans = a+a*2+a*3

print(ans)

Failing test case input:
197

Expected output:
7684379


Actual output:
1182


Fixed submission (verdict: Accepted):
a = int(input())

ans = a+a*a+a*a*a

print(ans)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
i = input()
print(i + i*2 + i*3)

Failing test case input:
290

Expected output:
24473390


Actual output:
290290290290290290


Fixed submission (verdict: Accepted):
i = int(input())
print(i + i**2 + i**3)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())

a = a + a**2 + a**3

Failing test case input:
853

Expected output:
621378939


Actual output:

Fixed submission (verdict: Accepted):
a = int(input())

a = a + a**2 + a**3
print(a)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
ans = (a+a*2+a*3+0.01)
print(ans)


Failing test case input:
-19

Expected output:
-6517


Actual output:
-113.99


Fixed submission (verdict: Accepted):
a = int(input())
ans = a+a**2+a**3
print(ans)

Problem: p02621
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
def sep():
    return map(int,input().strip().split(" "))
def lis():
    return list(sep())

n=int(input())
print(n* n*n + n*n*n)







Failing test case input:
-20

Expected output:
-7620


Actual output:
-16000


Fixed submission (verdict: Accepted):
def sep():
    return map(int,input().strip().split(" "))
def lis():
    return list(sep())

n=int(input())
print(n + n*n + n*n*n)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
print(a**2+a+1)

Failing test case input:
96

Expected output:
894048


Actual output:
9313


Fixed submission (verdict: Accepted):
a = int(input())

print(a+a**2+a**3)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a=int(input())
a+a**2+a**3

Failing test case input:
853

Expected output:
621378939


Actual output:

Fixed submission (verdict: Accepted):
a=int(input())
print(a+a**2+a**3)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input("整数を入力してください"))
answer = a+a*a+a*a*a
print(answer)

Failing test case input:
165

Expected output:
4519515


Actual output:
整数を入力してください4519515


Fixed submission (verdict: Accepted):
a = int(input())
answer = a+a*a+a*a*a
print(answer)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
print(a + a * 2 + a ** 3)

Failing test case input:
-29

Expected output:
-23577


Actual output:
-24476


Fixed submission (verdict: Accepted):
a = int(input())
print(a + (a ** 2) + (a ** 3))
Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import sys
def LI(): return list(map(int, sys.stdin.buffer.readline().split()))
def I(): return int(sys.stdin.buffer.readline())
def LS(): return sys.stdin.buffer.readline().rstrip().decode('utf-8').split()
def S(): return sys.stdin.buffer.readline().rstrip().decode('utf-8')
def IR(n): return [I() for i in range(n)]
def LIR(n): return [LI() for i in range(n)]
def SR(n): return [S() for i in range(n)]
def LSR(n): return [LS() for i in range(n)]
def SRL(n): return [list(S()) for i in range(n)]
def MSRL(n): return [[int(j) for j in list(S())] for i in range(n)]
mod = 10 ** 9 + 7

a = I()

ans = int(a + a ** 2 + a ** 3)

Failing test case input:
153

Expected output:
3605139


Actual output:

Fixed submission (verdict: Accepted):
import sys
def LI(): return list(map(int, sys.stdin.buffer.readline().split()))
def I(): return int(sys.stdin.buffer.readline())
def LS(): return sys.stdin.buffer.readline().rstrip().decode('utf-8').split()
def S(): return sys.stdin.buffer.readline().rstrip().decode('utf-8')
def IR(n): return [I() for i in range(n)]
def LIR(n): return [LI() for i in range(n)]
def SR(n): return [S() for i in range(n)]
def LSR(n): return [LS() for i in range(n)]
def SRL(n): return [list(S()) for i in range(n)]
def MSRL(n): return [[int(j) for j in list(S())] for i in range(n)]
mod = 10 ** 9 + 7

a = I()

ans = int(a + a ** 2 + a ** 3)

print(ans)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a=int(input());print(a-~a**3)

Failing test case input:
-2

Expected output:
-6


Actual output:
-9


Fixed submission (verdict: Accepted):
a=int(input());print(a+a*a+a*a*a)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = 2
ans = int(a + a ** 2 + a ** 3)
print(ans)

Failing test case input:
-4

Expected output:
-52


Actual output:
14


Fixed submission (verdict: Accepted):
a = int(input())
ans = int(a + a ** 2 + a ** 3)
print(ans)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a=input()

a1=int(a)

print(int(a1+(a1**a1)+(a1*a1*a1)))

Failing test case input:
-35

Expected output:
-41685


Actual output:
-42910


Fixed submission (verdict: Accepted):
a=input()

a1=int(a)

b=a1+(a1*a1)+(a1*a1*a1)

print(b)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a=int(input())
print(a+a*2+a**3)

Failing test case input:
762

Expected output:
443032134


Actual output:
442453014


Fixed submission (verdict: Accepted):
a=int(input())
print(a+a**2+a**3)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):


inpnum = int(input())

sum = lambda n,t : n * t

print(sum(inpnum, 6))



Failing test case input:
-4

Expected output:
-52


Actual output:
-24


Fixed submission (verdict: Accepted):


inpnum = int(input())

sum = lambda n,t : n ** t

print(inpnum + sum(inpnum, 2) + sum(inpnum, 3))
Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a=int(input())
l = [a**i for i in range(4)]
print(l)
print(sum(l)-1)

Failing test case input:
-6

Expected output:
-186


Actual output:
[1, -6, 36, -216]
-186


Fixed submission (verdict: Accepted):
a=int(input())
l = [a**i for i in range(4)]
print(sum(l)-1)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
print(1+ a**2 + a**3)

Failing test case input:
-62

Expected output:
-234546


Actual output:
-234483


Fixed submission (verdict: Accepted):
a = int(input())
print(a + a**2 + a**3)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a=int(input())
print(a*+a*a+a**3)


Failing test case input:
-35

Expected output:
-41685


Actual output:
-85750


Fixed submission (verdict: Accepted):
a=int(input())
print(a+a*a+a**3)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())

x = a + a**2 + a**3
print(a)

Failing test case input:
-12

Expected output:
-1596


Actual output:
-12


Fixed submission (verdict: Accepted):
a = int(input())

x = a + a**2 + a**3
print(x)

Problem: p02621
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = int(input())
print(a + a^2 + a^3)

Failing test case input:
-33

Expected output:
-34881


Actual output:
92


Fixed submission (verdict: Accepted):
a = int(input())
print(a + a**2 + a**3)
Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a,b = map(int,input().split())
print(a*b)
print(2*(a+b))


Failing test case input:
0 47

Expected output:
0 94


Actual output:
0
94


Fixed submission (verdict: Accepted):
a,b = map(int,input().split())
print(a*b,2*(a+b))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
import sys

data = sys.stdin.readline().strip().split(' ')
a = int(data[0])
b = int(data[1])
print('%d' % (a * b))

Failing test case input:
1 60

Expected output:
60 122


Actual output:
60


Fixed submission (verdict: Accepted):
import sys

data = sys.stdin.readline().strip().split(' ')
a = int(data[0])
b = int(data[1])
print('%d %d' % (a * b, (a + b) * 2))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
l = list(map(int, input().split()))
area = l[0] * l[1]
perimeter = l[0] * 2 + l[1] * 2
print(area)
print(perimeter)




Failing test case input:
1 57

Expected output:
57 116


Actual output:
57
116


Fixed submission (verdict: Accepted):
l = list(map(int, input().split()))
area = l[0] * l[1]
perimeter = l[0] * 2 + l[1] * 2
print('{0} {1}'.format(area, perimeter))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a,b=map(int, input().split())
length=2*a+2*b
menseki=a*b
print(length,menseki)


Failing test case input:
-16 -2

Expected output:
32 -36


Actual output:
-36 32


Fixed submission (verdict: Accepted):
a,b=map(int, input().split())
length=2*a+2*b
menseki=a*b
print(menseki,length)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a, b = map(int, input(). split())
x = a+a+b+b
y = a*b
print(x, y)


Failing test case input:
-16 0

Expected output:
0 -32


Actual output:
-32 0


Fixed submission (verdict: Accepted):
a, b = map(int, input(). split())
x = a*b
y = a*2+b+b
print(x, y)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a, b = map(int,input().split())
print(a,b)
x = a*b
y = 2 * (a + b)
print(x,y)


Failing test case input:
4 122

Expected output:
488 252


Actual output:
4 122
488 252


Fixed submission (verdict: Accepted):
a, b = map(int,input().split())
x = a*b
y = 2 * (a + b)
print(x,y)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a, b = map(int, input(). split())
x = a*2+b+b
y = a*b
print(x, y)


Failing test case input:
-6 2

Expected output:
-12 -8


Actual output:
-8 -12


Fixed submission (verdict: Accepted):
a, b = map(int, input(). split())
x = a*b
y = a*2+b+b
print(x, y)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):


x = input().split()
a = x[0]
b = x[1]
m = int(a) * int(b)
s = int(a) * 2 + int(b) * 2
print(s,m)

Failing test case input:
-16 -1

Expected output:
16 -34


Actual output:
-34 16


Fixed submission (verdict: Accepted):


a,b = input().split()
m = int(a) * 2 + int(b) * 2
s = int(a) * int(b)
print(s,m)
Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
def rect(a,b):
    return a*2,b+2  
s = input()
x = s.split()
a = int(x[0])
b = int(x[1])

area,perimeter = rect(a,b)
print(area,perimeter)


Failing test case input:
4 39

Expected output:
156 86


Actual output:
8 41


Fixed submission (verdict: Accepted):
def rect(a,b):
    return a*b,2*(a+b)  
s = input()
x = s.split()
a = int(x[0])
b = int(x[1])

area,perimeter = rect(a,b)
print(area,perimeter)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a, b =map(int, input().split())
print(a*2+b*2)


Failing test case input:
4 23

Expected output:
92 54


Actual output:
54


Fixed submission (verdict: Accepted):
a, b =map(int, input().split())
print(a*b, a*2+b*2)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
dim = list(map(int, input().split(' ')))
w, h = dim[0], dim[1]
print(w * h)
print(2 * (w + h))



Failing test case input:
6 39

Expected output:
234 90


Actual output:
234
90


Fixed submission (verdict: Accepted):
dim = list(map(int, input().split(' ')))
w, h = dim[0], dim[1]
print('{0} {1}'.format(w * h, 2 * (w + h)))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
x, y = map(int, input().split())
x*y
2*(x+y)


Failing test case input:
-16 -2

Expected output:
32 -36


Actual output:

Fixed submission (verdict: Accepted):
x, y = map(int, input().split())
print(x*y, 2*(x+y))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
x, y = map(int, input().split())
print("{0:d} {1:d}".format(x**2, y**2))


Failing test case input:
-6 2

Expected output:
-12 -8


Actual output:
36 4


Fixed submission (verdict: Accepted):
x,y = map(int, input().split())
print("{0:d} {1:d}".format(x*y, (x+y)*2))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a, b = map(int, input().rstrip().split(" "))

print(2*(a+b), a*b)

Failing test case input:
4 122

Expected output:
488 252


Actual output:
252 488


Fixed submission (verdict: Accepted):
a, b = map(int, input().rstrip().split(" "))

print(a*b, 2*(a+b))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
y,z = map(int,input().split())
print(y*z)
print((y+z)*2)

Failing test case input:
1 122

Expected output:
122 246


Actual output:
122
246


Fixed submission (verdict: Accepted):
y,z = map(int,input().split())
print((y*z),((y+z)*2),sep=' ')

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a, b = map(int, input().split())
print(a*2 + b*2)

Failing test case input:
4 39

Expected output:
156 86


Actual output:
86


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
print(a*b, a*2 + b*2)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a, b= map(int, input().split())

print(a*b)
print(a*2 + b*2)


Failing test case input:
1 57

Expected output:
57 116


Actual output:
57
116


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
c=a*b
d=a*2+b*2
print(c, d)
Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
x = list(map(float, input().split()))
print(2*(x[0]+x[1], x[0]*x[1]))

Failing test case input:
4 122

Expected output:
488 252


Actual output:
(126.0, 488.0, 126.0, 488.0)


Fixed submission (verdict: Accepted):
x = list(map(int, input().split()))
print(x[0]*x[1], 2*(x[0]+x[1]))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a,b=input().split()
a=int(a)
b=int(b)
print(a*b)
print(2*(a+b))


Failing test case input:
6 39

Expected output:
234 90


Actual output:
234
90


Fixed submission (verdict: Accepted):
a,b=input().split()
a=int(a)
b=int(b)
print(a*b,2*(a+b))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
z = input()

z = z.split( )
a = int(z[0]) * int(z[1])
b = int(z[0]) * 2 + int(z[1]) * 2

print(str(a) + ',' + str(b))


Failing test case input:
-6 2

Expected output:
-12 -8


Actual output:
-12,-8


Fixed submission (verdict: Accepted):
z = input()

z = z.split( )
a = int(z[0]) * int(z[1])
b = int(z[0]) * 2 + int(z[1]) * 2

print(str(a) + ' ' + str(b))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a, b = input().strip().split(' ')
a, b = [int(a), int(b)]

men = a * b
syu = 2 * (a + b)

print(men)
print(syu)



Failing test case input:
6 39

Expected output:
234 90


Actual output:
234
90


Fixed submission (verdict: Accepted):
a, b = input().strip().split(' ')
a, b = [int(a), int(b)]

men = a * b
syu = 2 * (a + b)

print(str(men) + ' ' + str(syu))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
item = [int(i) for i in input().split()]
print(item)

Failing test case input:
-6 2

Expected output:
-12 -8


Actual output:
[-6, 2]


Fixed submission (verdict: Accepted):
item = [int(i) for i in input().split()]
print(item[0]*item[1],2*(item[0]+item[1]))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
num = list(map(int,input().split()))

print("%d %d" % (num[0],num[1]))


Failing test case input:
-16 -2

Expected output:
32 -36


Actual output:
-16 -2


Fixed submission (verdict: Accepted):
num = list(map(int,input().split()))

print("%d %d" % (num[0]*num[1],(num[0]+num[1])*2))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a, b = map(int, input().split())
print(a * b)
print(2 * a * b)

Failing test case input:
4 23

Expected output:
92 54


Actual output:
92
184


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
print(a * b, end=' ')
print(2 * (a + b))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a, b = input().split()
print (int(a)*int(b))


Failing test case input:
6 39

Expected output:
234 90


Actual output:
234


Fixed submission (verdict: Accepted):
a,b = input().split()
print ( int(a)*int(b), 2*(int(a)+int(b)) )

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a, b = input().split()
print (int(a) * int(b))


Failing test case input:
1 122

Expected output:
122 246


Actual output:
122


Fixed submission (verdict: Accepted):
a,b = input().split()
print ( int(a)*int(b), 2*(int(a)+int(b)) )
Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a,b=map(int,input().split())
print(a*b)
print(2*(a+b))


Failing test case input:
0 47

Expected output:
0 94


Actual output:
0
94


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
print(a*b,2*(a+b))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a,b = map(int, input().split())
c=a*b
d=2*(a+b)


Failing test case input:
1 122

Expected output:
122 246


Actual output:

Fixed submission (verdict: Accepted):
a,b = map(int, input().split())
c=a*b
d=2*(a+b)
print(c,d)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a,b=map(int,input().split(" "))
print(a*b)



Failing test case input:
1 47

Expected output:
47 96


Actual output:
47


Fixed submission (verdict: Accepted):
a,b=map(int,input().split(" "))
print(a*b,2*a+2*b)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
def rect(a,b):
    return a*2, b+2
n =input()
x =n.split()
a =int(x[0])
b =int(x[1])

area, perimeter =rect(a,b)
print(area, perimeter)


Failing test case input:
1 57

Expected output:
57 116


Actual output:
2 59


Fixed submission (verdict: Accepted):
def rect(a,b):
    return a*b, 2*(a+b)
n =input()
x =n.split()
a =int(x[0])
b =int(x[1])

area, perimeter =rect(a,b)
print(area, perimeter)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a,b=map(int,input().split())
print((a+b)*2,a*b)


Failing test case input:
1 47

Expected output:
47 96


Actual output:
96 47


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
print(a*b,(a+b)*2)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
num = list(map(int,input().split()))

print("%d %d" % (num[0],num[1]))



Failing test case input:
1 57

Expected output:
57 116


Actual output:
1 57


Fixed submission (verdict: Accepted):
num = list(map(int,input().split()))

print("%d %d" % (num[0]*num[1],(num[0]+num[1])*2))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a, b = (int(x) for x in input().split())
print(a*b)




Failing test case input:
1 57

Expected output:
57 116


Actual output:
57


Fixed submission (verdict: Accepted):
a, b = (int(x) for x in input().split())
print(a*b, 2*a + 2*b)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
data = input().split()
a = data[0]
b = data[1]
print (int(a) * int(b))
print (2 * (int(a) + int(b)))

Failing test case input:
0 47

Expected output:
0 94


Actual output:
0
94


Fixed submission (verdict: Accepted):
data = input().split()
a = data[0]
b = data[1]
print (int(a) * int(b), 2 * (int(a) + int(b)))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
item = [int(i) for i in input().split()]
print(item[0])

Failing test case input:
6 39

Expected output:
234 90


Actual output:
6


Fixed submission (verdict: Accepted):
item = [int(i) for i in input().split()]
print(item[0]*item[1],2*(item[0]+item[1]))
Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):

x = input()

a = int( x.split(' ')[0] )

b = int( x.split(' ')[0] )

print( a * b, (a + b) * 2 )


Failing test case input:
1 47

Expected output:
47 96


Actual output:
1 4


Fixed submission (verdict: Accepted):
if __name__ == '__main__':
    x = input()
    a = int( x.split(' ')[0] )
    b = int( x.split(' ')[1] )
    print( a * b, (a + b) * 2 )

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
x, y = [int(i) for i in input().split()]
print(x)


Failing test case input:
1 57

Expected output:
57 116


Actual output:
1


Fixed submission (verdict: Accepted):
x, y = [int(i) for i in input().split()]
print(x * y, (x + y) * 2)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
arg = input().split()
a = arg[0]
b = arg[1]
o = str(int(a)*int(b))
o2 = str(2*(int(a)*int(b)))
print(o + " " + o2)



Failing test case input:
-16 -2

Expected output:
32 -36


Actual output:
32 64


Fixed submission (verdict: Accepted):
arg = input().split()
a = arg[0]
b = arg[1]
o = str(int(a)*int(b))
o2 = str(2*(int(a)+int(b)))
print(o + " " + o2)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a = [int(item) for item in input().split()]
print("{} {}".format(2*(a[0]+a[1]), a[0]*a[1]))

Failing test case input:
-16 -2

Expected output:
32 -36


Actual output:
-36 32


Fixed submission (verdict: Accepted):
a = [int(item) for item in input().split()]
print("{} {}".format(a[0]*a[1], 2*(a[0]+a[1])))

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):

x = input()
split_x = x.split(sep=" ")
a = int(split_x[0])
b = int(split_x[1])


Circumference = str(a*2 + b*2)
Area = str(a *b)
print(Circumference + " " + Area)

Failing test case input:
1 47

Expected output:
47 96


Actual output:
96 47


Fixed submission (verdict: Accepted):

x = input()
split_x = x.split(sep=" ")
a = int(split_x[0])
b = int(split_x[1])


Circumference = str(a*2 + b*2)
Area = str(a *b)
print(Area + " " + Circumference)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
a, b = map(int, input().split())

print(a*b), (a*2+b*2)


Failing test case input:
-16 -1

Expected output:
16 -34


Actual output:
16


Fixed submission (verdict: Accepted):
a, b = map(int, input().split())
c=a*b
d=a*2+b*2
print(c, d)

Problem: p02389
Buggy submission (Python3, verdict: Wrong Answer):
x=str(input())
n=x.split(" ", 2)
a=int(n[0])
b=int(n[1])
ab=a*b
a_b=(a+b)*2
print('ab', end=' ')
print('a_b')

Failing test case input:
1 122

Expected output:
122 246


Actual output:
ab a_b


Fixed submission (verdict: Accepted):
x=str(input())
n=x.split(" ", 2)
a=int(n[0])
b=int(n[1])
ab=a*b
a_b=(a+b)*2
print(ab, end=' ')
print(a_b)