import sys
import math
try:
sys.stdin = open('input.in', 'r')
sys.stdout = open('output.out', 'w')
except:
pass
finally:
#Actual code here
import sys
import math
try:
sys.stdin = open('input.in', 'r')
sys.stdout = open('output.out', 'w')
except:
pass
finally:
#Actual code here