Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
i = 1
while (a = input()) != 0:
	print "Case %d: %d" % (i, a)
	i = i + 1

Fixed submission:
i = 1
while True:
 a = raw_input()
 if a == '0':
  break
 print "Case %s: %s" % (i,a)
 i += 1

Buggy python submission (verdict: Runtime Error):
lis = []
a = raw_input()
while a != '0':
 lis.append(a)
 a = int(raw_input())

for i,v in enumerate(lis):
 print "Case %d: %d" % (i+1,v)

Fixed submission:
i = 1
while True:
 a = raw_input()
 if a == '0':
  break
 print "Case %s: %s" % (i,a)
 i += 1

Buggy python submission (verdict: Runtime Error):
i = 1
while true:
 a = raw_input()
 if a = '0':
  break
 print "Case %d: %s" % (i,a)

Fixed submission:
i = 1
while True:
 a = raw_input()
 if a == '0':
  break
 print "Case %s: %s" % (i,a)
 i += 1
Buggy python submission (verdict: Runtime Error):
a,b,c = map(int, raw_input().split())
t = 0
for n in range(a,b+1)
 if c%n == 0:
 	t += 1
print t

Fixed submission:
a,b,c = map(int, raw_input().split())
t = 0
for n in range(a,b+1):
 if c%n == 0:
 	t += 1
print str(t)
Buggy python submission (verdict: Runtime Error):
n = input()
lis = map(int, raw_input().split())
mn = lis[0]
mx = li[0]
for t in lis:
	if mn > t:
		mn = t
	if mx < t:
		mx = t
print mn, mx, sum(lis)

Fixed submission:
n = input()
lis = map(int, raw_input().split())
mn = lis[0]
mx = lis[0]
for t in lis:
	if mn > t:
		mn = t
	if mx < t:
		mx = t
print "%s %s %s" % (mn, mx, sum(lis))
Buggy python submission (verdict: Runtime Error):
#-*- coding: utf-8 -*-

n, m = map(int, raw_input().split())
mx = [] * n
for i in xrange(n):
	mx[i] = map(int, raw_input().split())

v = [0] * m
for i in xrange(m):
	v[i] = input()

for i in xrange(n):
	t = 0
	for j in xrange(m):
		t += mx[i][j] * v[j]
	print t

Fixed submission:
#-*- coding: utf-8 -*-

n, m = map(int, raw_input().split())
t = [0] * m
mx = t * n
for i in xrange(n):
	mx[i] = map(int, raw_input().split())

v = [0] * m
for i in xrange(m):
	v[i] = input()

for i in xrange(n):
	t = 0
	for j in xrange(m):
		t += mx[i][j] * v[j]
	print t
Buggy python submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-

import itertools:

while True:
 n, x = map(int, input().split())
 if n==0 and x==0: break
 count = 0
 for a, b, c in itertools.permutations(range(n), 3):
  if a+b+c==x: count += 1
 print count

Fixed submission:
# -*- coding: utf-8 -*-

import itertools

while True:
 n, x = map(int, raw_input().split())
 if n==0 and x==0: break
 count = 0
 for a, b, c in itertools.combinations(range(1, n+1), 3):
  if a+b+c==x:
   count += 1
 print count
Buggy python submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
w = raw_input()
c = 0
while 1:
 t = raw_input().lower()
 if t=="END_OF_TEXT": break
 tt = t.split()
 c += tt.count(w)
print c

Fixed submission:
# -*- coding: utf-8 -*-
w = raw_input().upper()
c = 0
while 1:
 t = raw_input()
 if t=="END_OF_TEXT": break
 c += t.upper().split().count(w)
print c

Buggy python submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
w = raw_input().upper()
c = 0
while 1:
 t = raw_input().upper()
 if t=="END_OF_TEXT": break
 tt = t.split()
 c += tt.count(w)
print c

Fixed submission:
# -*- coding: utf-8 -*-
w = raw_input().upper()
c = 0
while 1:
 t = raw_input()
 if t=="END_OF_TEXT": break
 c += t.upper().split().count(w)
print c
Buggy python submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
import sys
lines = sys.stdin.readlines()
l = 0
while lines[l]!="-":
 s = lines[l].replace('\n','')
 n = lines[l+1]
 l += 2
 t = sum([lines[i] for i in xrange(l, l+n)]) % len(s)
 print s[t:]+s[:t]
 l += n

Fixed submission:
# -*- coding: utf-8 -*-
import sys
lines = sys.stdin.readlines()
l = 0
while not ("-" in lines[l]):
 s = lines[l].replace('\n','')
 n = int(lines[l+1])
 l += 2
 t = sum(map(int, lines[l:l+n])) % len(s)
 print s[t:]+s[:t]
 l += n

Buggy python submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
import sys
lines = sys.stdin.readlines()
l = 0
while not ("-" in lines[l]):
 s = lines[l].replace('\n','')
 n = int(lines[l+1])
 l += 2
 t = sum(map(int, lines[l, l+n])) % len(s)
 print s[t:]+s[:t]
 l += n

Fixed submission:
# -*- coding: utf-8 -*-
import sys
lines = sys.stdin.readlines()
l = 0
while not ("-" in lines[l]):
 s = lines[l].replace('\n','')
 n = int(lines[l+1])
 l += 2
 t = sum(map(int, lines[l:l+n])) % len(s)
 print s[t:]+s[:t]
 l += n
Buggy python submission (verdict: Runtime Error):
import math
a,b,c,d = [int(i) for i in input().split()]

x = (c-a) ** 2
y = (d-b) ** 2

total = (x + y)

a = math.sqrt(total)

print(a)

Fixed submission:
import math

x,y,X,Y = [float(i) for i in input().split()]
print(math.sqrt((x-X)**2 + (y-Y)**2))

Buggy python submission (verdict: Runtime Error):
import math
a,b,c,d = [int(i) for i in input().split()]

x = (c-a) ** 2
y = (d-b) ** 2

total = (x + y)

i = math.sqrt(total)

print(i)

Fixed submission:
import math

x,y,X,Y = [float(i) for i in input().split()]
print(math.sqrt((x-X)**2 + (y-Y)**2))

Buggy python submission (verdict: Runtime Error):
import math
a,b,c,d = [int(i) for i in input().split()]

x = (c-a) ** 2
y = (d-b) ** 2

total = (x + y)

print(math.sqrt(total))

Fixed submission:
import math

x,y,X,Y = [float(i) for i in input().split()]
print(math.sqrt((x-X)**2 + (y-Y)**2))

Buggy python submission (verdict: Runtime Error):
import math

a,b,c,d = [int(i) for i in input().split()]

x = (c-a) ** 2
y = (d-b) ** 2

total = (x + y)

print(int(math.sqrt(total)))

Fixed submission:
import math

x,y,X,Y = [float(i) for i in input().split()]
print(math.sqrt((x-X)**2 + (y-Y)**2))
Buggy python submission (verdict: Runtime Error):
print(x**3)

Fixed submission:
x =int(input())
print(x ** 3)

Buggy python submission (verdict: Runtime Error):
x ==2
print(x**3)

Fixed submission:
x =int(input())
print(x ** 3)
Buggy python submission (verdict: Runtime Error):
a,b = (int(i) for i in input.split())
print(a * b , a * 2 + b * 2) 

Fixed submission:
a,b = [int(i) for i in input().split()]
print(a * b , a * 2 + b * 2)

Buggy python submission (verdict: Runtime Error):
a,b = [int(i) for i in input.split()]
print(a * b , a * 2 + b * 2) 

Fixed submission:
a,b = [int(i) for i in input().split()]
print(a * b , a * 2 + b * 2)
Buggy python submission (verdict: Runtime Error):
S = int(input())
h = int(S / 3600)
m = int(S /60)
s = h-m
print(h:m:s)

Fixed submission:
S = int(input())
h = int(S // 3600)
m = int((S - h*3600)// 60 )
s = int(S - (h*3600+m*60))

print(h,m,s, sep=':' )

Buggy python submission (verdict: Runtime Error):
S =int(input())
h = int(S / 3600)
m = int((S - h*3600)/60)
s = int(S -(h*3600+m*60))

print(h,':',m,":",s seq == "")

Fixed submission:
S = int(input())
h = int(S // 3600)
m = int((S - h*3600)// 60 )
s = int(S - (h*3600+m*60))

print(h,m,s, sep=':' )

Buggy python submission (verdict: Runtime Error):
S =int(input())
h = int(S / 3600)
m = int((S - h*3600)/60)
s = int(S -(h*3600+m*60))

print(h,':',m,":",s sep ="")

Fixed submission:
S = int(input())
h = int(S // 3600)
m = int((S - h*3600)// 60 )
s = int(S - (h*3600+m*60))

print(h,m,s, sep=':' )
Buggy python submission (verdict: Runtime Error):
count =1

while True:
    a,b =int(input())

    if a !=0 and b != 0 and a < b:
        a,b = a,b

    if a !=0 and b != 0 and b < a:
        a, b =b,a

    else:
         break

Fixed submission:
while True:
    x,y  =[int(i) for i in input().split()]

    if x == y == 0:
       break

    if x > y:
        x,y = y,x

    print(x,y)
Buggy python submission (verdict: Runtime Error):
a,b =[int(i) for i in input().split()]

d = a / b
r = a % b
f = a // b

print(d r f)

Fixed submission:
a, b = [int(i) for i in input().split()]
 
d = a // b
r = a % b
f = a / b
 
print("{0} {1} {2:.5f}".format(d, r, f))
Buggy python submission (verdict: Runtime Error):
r =[int(i) for i in input().split()]

s = r * r *3.14
l = 2 * r *3.14

print("{0:.5f},{1:.5f}".format(s,l))

Fixed submission:
import math
r = float(input())
 
s = r * r *math.pi
l = r *2 *math.pi
 
print("{0:.5f} {1:.5f}".format(s,l))

Buggy python submission (verdict: Runtime Error):
import math.pi from math

r =[int(i) for i in input().split()]


s = r * r *pi
l = 2 * r *pi

print("{0:.5f},{1:.5f}".format(s,l))

Fixed submission:
import math
r = float(input())
 
s = r * r *math.pi
l = r *2 *math.pi
 
print("{0:.5f} {1:.5f}".format(s,l))

Buggy python submission (verdict: Runtime Error):
import math

r =[int(i) for i in input().split()]


s = r * r *pi
l = 2 * r *pi

print("{0:.5f},{1:.5f}".format(s,l))

Fixed submission:
import math
r = float(input())
 
s = r * r *math.pi
l = r *2 *math.pi
 
print("{0:.5f} {1:.5f}".format(s,l))

Buggy python submission (verdict: Runtime Error):
import math

r =float(input())


s = r * r * pi
l = 2 * r * pi

print("{0:.5f},{1:.5f}".format(s,l))

Fixed submission:
import math
r = float(input())
 
s = r * r *math.pi
l = r *2 *math.pi
 
print("{0:.5f} {1:.5f}".format(s,l))
Buggy python submission (verdict: Runtime Error):
while True:
    H, W =[int(i) for i in input().split ]
    if H == W == 0:
       break
 
    for h in range(H):
        for w in range(W):
            if h == 0 or h == h -1 or w == 0 or w == W - 1:
               print('#', end='')
            else:
                print('*', end='')
 
        print()
 
    print()

Fixed submission:
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break
    for h in range(H):
        for w in range(W):
            if h == 0 or h == H - 1 or w == 0 or w == W - 1:
                print('#', end='')
            else:
                print('.', end='')
        print()
    print()

Buggy python submission (verdict: Runtime Error):
while True:
    H, W =[int(i) for i in input().split ]
    if H == W == 0:
       break
 
    for h in range(H):
        for w in range(W):
            if h == 0 or h == h -1 or w == 0 or w == W - 1:
               print('#', end='')
            else:
                print('.', end='')
 
        print()
 
    print()

Fixed submission:
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break
    for h in range(H):
        for w in range(W):
            if h == 0 or h == H - 1 or w == 0 or w == W - 1:
                print('#', end='')
            else:
                print('.', end='')
        print()
    print()

Buggy python submission (verdict: Runtime Error):
while True:
    H, W =[int(i) for i in input().split ]
    if H == W == 0:
       break
 
    for h in range(H):
        for w in range(W):
            if h == 0 or h == h -1 or w == 0 or w == W - 1:
               print('#', end=' ')
            else:
                print('.', end=' ')
 
        print()
 
    print()

Fixed submission:
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break
    for h in range(H):
        for w in range(W):
            if h == 0 or h == H - 1 or w == 0 or w == W - 1:
                print('#', end='')
            else:
                print('.', end='')
        print()
    print()

Buggy python submission (verdict: Runtime Error):
while True:
    H, W =[int(i) for i in input().split ]
    if H == W == 0:
       break
 
    for h in range(H):
        for w in range(W):
            if h == 0 or h == h -1 or w == 0 or w == W - 1:
               print('#', end=' ')
            else:
                print('.', end=' ')
 
        print()
 
    print()

Fixed submission:
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break
    for h in range(H):
        for w in range(W):
            if h == 0 or h == H - 1 or w == 0 or w == W - 1:
                print('#', end='')
            else:
                print('.', end='')
        print()
    print()
Buggy python submission (verdict: Runtime Error):
while True:
    m,f,r =[int(i) for i in input().split()]

    if m == f == r ==-1:
        break

    total =m+f
    if m ==-1 or f == -1 or total <30:
        print("F")

    elif total < 50 and r < 50:
        print("D")
    
    elif total <65
        print("C")

    elif total <80:
        pirnt("B")

    else:
         print("A")

Fixed submission:
while True:
    m, f, r = [int(i) for i in input().split()]
 
    if m == f == r == -1:
        break
 
    total = m + f
    if m == -1 or f == -1 or total < 30:
        print('F')
 
    elif total < 50 and r < 50:
        print('D')
 
    elif total < 65:
        print('C')
         
    elif total < 80:
        print('B')
         
    else:
        print('A')
Buggy python submission (verdict: Runtime Error):
import math
x1,y1,x2,y2 = map(int, input().split())
print("{:.6f}".format(math.sqrt((x2-x1)**2+(y2-y1)**2)))

Fixed submission:
import math
x1,y1,x2,y2 = map(float, input().split())
dist = math.sqrt((x2-x1)**2+(y2-y1)**2)
print("%.6f" % (dist))

Buggy python submission (verdict: Runtime Error):
import math
x1,y1,x2,y2 = map(int, input().split())
print("{:.6f}".format(math.sqrt((x2-x1)**2+(y2-y1)**2)))

Fixed submission:
import math
x1,y1,x2,y2 = map(float, input().split())
dist = math.sqrt((x2-x1)**2+(y2-y1)**2)
print("%.6f" % (dist))

Buggy python submission (verdict: Runtime Error):
import math
x1,y1,x2,y2 = map(int, input().split())
dist = math.sqrt((x2-x1)**2+(y2-y1)**2)
print("%.5f" % (dist))

Fixed submission:
import math
x1,y1,x2,y2 = map(float, input().split())
dist = math.sqrt((x2-x1)**2+(y2-y1)**2)
print("%.6f" % (dist))
Buggy python submission (verdict: Runtime Error):
a,b = map(int,input())
if a>b:
    print("a > b")
elif a<b:
    print("a < b")
else:
    print("a == b")

Fixed submission:
a,b = map(int,input().split())
if a>b:
    print("a > b")
elif a<b:
    print("a < b")
else:
    print("a == b")
Buggy python submission (verdict: Runtime Error):
while True:
    h, w = map( int, input().split() )
    if not h and not w: break
    print('#' * w +'\n' + ('#' + '.' * w-2 + '#\n') * h-2 + '#' * w + '\n')

Fixed submission:
while True:
    h, w = map( int, input().split() )
    if not h and not w:
        break
    if h <3 or w < 3:
        print(("#" * w + "\n") * h)
    else:
        print('#' * w +'\n' + ('#' + '.' * (w-2) + '#\n') * (h-2) + '#' * w + '\n')
Buggy python submission (verdict: Runtime Error):
r, c = map(int, input().split())
mat = [list(map(int, input().split())) for i in range(r)]
for row in mat:
    print(*row, sum(row))
colSum = [sum(col) for col in zip(*mat)]
print(*colSum, sum(colSum))

Fixed submission:
r, c = map(int, input().split())
mat = [list(map(int, input().split())) for i in range(r)]
for row in mat:
    row.append(sum(row))
    print(*row)
colSum = [sum(col) for col in zip(*mat)]
print(*colSum)
Buggy python submission (verdict: Runtime Error):
while True:
    C = input()
    if C == "-":
        break
    count = int(input())
    shuffle = [int(input() for i in range(count))]
    for h in shuffle:
        C = C[h:] + C[:h]
    print(C)

Fixed submission:
while True:
    C = input()
    if C == "-":
        break
    count = int(input())
    shuffle = [int(input()) for i in range(count)]
    for h in shuffle:
        C = C[h:] + C[:h]
    print(C)
Buggy python submission (verdict: Runtime Error):
import math
r = int(input())
print(r ** 2 * math.pi, r * 2 * math.pi)

Fixed submission:
import math
r = float(input())
print(r ** 2 * math.pi, r * 2 * math.pi)
Buggy python submission (verdict: Runtime Error):
suits = {"S":0, "H":1, "C":2, "D":3}
cards = [[0 for i2 in range(13)] for i1 in ("S", "H", "C", "D")]
n = int(input())

for i in range(n):
    (suit, rank) = input().split(" ")
    cards[suits[suit]][int(rank)] = 1

for suit in ("S", "H", "C", "D"):
    for number in range(13):
        if cards[suits[suit]][number + 1] != 1:
            print(suit, number + 1)

Fixed submission:
suits = {"S":0, "H":1, "C":2, "D":3}
cards = [[0 for i2 in range(13)] for i1 in ("S", "H", "C", "D")]
n = int(input())

for i in range(n):
    (suit, rank) = input().split(" ")
    cards[suits[suit]][int(rank) - 1] = 1

for suit in ("S", "H", "C", "D"):
    for number in range(13):
        if cards[suits[suit]][number] != 1:
            print(suit, number + 1)
Buggy python submission (verdict: Runtime Error):
import sys
import string

dic = {}
for c in string.ascii_lowercase:
    dic[c] = 0

for c in sys.stdin.read().lower():
    if c.isalpha():
        dic[c] += 1

for c in dic:
    print(c+" : "+dic[c])

Fixed submission:
import sys
import string

s = sys.stdin.read().lower()
for c in string.ascii_lowercase:
    print(c, ":", s.count(c))
Buggy python submission (verdict: Runtime Error):
import sys
W = input()
print(sys.stdin.read().rstrip('END_OF_TEXT').lower().split(" ").count())

Fixed submission:
import sys
W = input().lower()
print(sys.stdin.read().rstrip('END_OF_TEXT').lower().split().count(W))
Buggy python submission (verdict: Runtime Error):
while(1):
    n = input()
    if n == '_':
        exit()
    m = int(input())
    for i in range(m):
        h = int(input())
        n = n[h:] + n[0:h]
    print(n)

Fixed submission:
while(1):
    n = input()
    if n == '-':
        exit()
    m = int(input())
    for i in range(m):
        h = int(input())
        n = n[h:] + n[0:h]
    print(n)
Buggy python submission (verdict: Runtime Error):
'''
ITP-1_10-A
 ?????¢
?????? P1(x1, y1), P2(x2, y2) ????????¢????±???????????????°????????????????????????
???Input
x1, y1, x2, y2 ????????°???????????????????????§?????????????????????
???Output
P1??¨P2????????¢????????°??§?????????????????????????????????0.0001??\????????????????????£????????????????????¨????????????
'''
# # import
# import numpy
# 
# # inputData
# Data = input().split()
# x1 = int(Data[0])
# y1 = int(Data[1])
# x2 = int(Data[2])
# y2 = int(Data[3])
# 
# P1 = numpy.array([x1, y1])
# P2 = numpy.array([x2, y2])
# print(numpy.linalg.norm(P2 - P1))

import math

def get_distance(x1, y1, x2, y2):
    d = math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2)
    return d

if __name__ == '__main__':
    # inputData
    Data = input().split()
    x1 = int(Data[0])
    y1 = int(Data[1])
    x2 = int(Data[2])
    y2 = int(Data[3])

    d = get_distance(x1, y1, x2, y2)
    print(d)

Fixed submission:
'''
ITP-1_10-A
 ?????¢
?????? P1(x1, y1), P2(x2, y2) ????????¢????±???????????????°????????????????????????
???Input
x1, y1, x2, y2 ????????°???????????????????????§?????????????????????
???Output
P1??¨P2????????¢????????°??§?????????????????????????????????0.0001??\????????????????????£????????????????????¨????????????
'''
# # import
# import numpy
# 
# # inputData
# Data = input().split()
# x1 = int(Data[0])
# y1 = int(Data[1])
# x2 = int(Data[2])
# y2 = int(Data[3])
# 
# P1 = numpy.array([x1, y1])
# P2 = numpy.array([x2, y2])
# print(numpy.linalg.norm(P2 - P1))

import math

def get_distance(x1, y1, x2, y2):
    d = math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2)
    return d

if __name__ == '__main__':
    # inputData
    Data = input().split()
    x1 = float(Data[0])
    y1 = float(Data[1])
    x2 = float(Data[2])
    y2 = float(Data[3])

    d = get_distance(x1, y1, x2, y2)
    print(d)
Buggy python submission (verdict: Runtime Error):
'''
ITP-1_3-C
 2 ????????°?????????
???????????´??° x, y ?????????????????????????????????????°?????????????????????????????????°?????????????????????????????????
?????????????????????????????\?????????????????????????????????????????????????????????????????????????????¨?????¨?????????????????????
???Input
??\???????????°????????????????????????????§?????????????????????????????????????????????????????????§??????????????????????????´??° x, y ?????????
?????????????§?????????????????????????
???Output
??????????????????????????¨??????x ??¨ y ????°????????????????????????????????????????????????????????????????x ??¨ y ????????????????????????????????\??????????????????
'''
# import
import sys

# input???????????????
for inputData in sys.stdin:
    inputData = inputData.split(" ")
    inputData01, inputData02 = int(inputData[0]), int(inputData[1])
    # 0?????´??? ????????????
    if inputData01 == 0:
        if inputData02 == 0:
            break

    if inputData01 > inputData02:
        outputData01 = inputData02
        outputData02 = inputData01
    elif inputData01 < inputData02:
        outputData01 = inputData01
        outputData02 = inputData02

    # ????????????
    print((outputData01),(outputData02)))

Fixed submission:
'''
ITP-1_3-C
 2 ????????°?????????
???????????´??° x, y ?????????????????????????????????????°?????????????????????????????????°?????????????????????????????????
?????????????????????????????\?????????????????????????????????????????????????????????????????????????????¨?????¨?????????????????????
???Input
??\???????????°????????????????????????????§?????????????????????????????????????????????????????????§??????????????????????????´??° x, y ?????????
?????????????§?????????????????????????
???Output
??????????????????????????¨??????x ??¨ y ????°????????????????????????????????????????????????????????????????x ??¨ y ????????????????????????????????\??????????????????
'''
# import
import sys

# input???????????????
for inputData in sys.stdin:
    inputData = inputData.split(" ")
    inputData01, inputData02 = int(inputData[0]), int(inputData[1])
    # 0?????´??? ????????????
    if inputData01 == 0:
        if inputData02 == 0:
            break

    if inputData01 > inputData02:
        outputData01 = inputData02
        outputData02 = inputData01
    else:
        outputData01 = inputData01
        outputData02 = inputData02

    # ????????????
    print((outputData01), (outputData02))
Buggy python submission (verdict: Runtime Error):
'''
ITP-1_4-B
 ????????¢?????¨?????¨
?????? r ???????????¢?????¨?????¨?????????????±???????????????°?????????????????????????????????
 Input
??????????????° r ????????????????????????
 Output
??¢?????¨?????¨?????????????????????????????§????????£????????????????????????????????????????????????????°???°?????°??¨??????0.00001 ??\???????????????????????§?????????????????¨????????????
'''
# import
import math

# ?????°??????????????????
r=float(input())

# ?????¨????????????
?? = math.pi

# ????????¢???????±???????
outputData01 = r*r*??

# ?????¨????±???????
outputData02 = 2*r*??

# ?????????????????????
print("{0:.6f} {1:.6f}".format(outputData01, outputData02))

Fixed submission:
'''
ITP-1_4-B
 ????????¢?????¨?????¨
?????? r ???????????¢?????¨?????¨?????????????±???????????????°?????????????????????????????????
 Input
??????????????° r ????????????????????????
 Output
??¢?????¨?????¨?????????????????????????????§????????£????????????????????????????????????????????????????°???°?????°??¨??????0.00001 ??\???????????????????????§?????????????????¨????????????
'''
# import
import math

# ?????°??????????????????
r=float(input())

# ?????¨????????????
pai = math.pi

# ????????¢???????±???????
outputData01 = r*r*pai

# ?????¨????±???????
outputData02 = 2*r*pai

# ?????????????????????
print("{0:.6f} {1:.6f}".format(outputData01, outputData02))