Football Scoring
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld

题目描述

There are five ways to score points in american professional football:
 1) Touchdown - 6 points
 2) Field Goal - 3 points 
 3) Safety - 2 points
 4) After touchdown 
    a) 1 point (Field Goal or Safety) - Typically called the “Point after” 
    b) 2 points (touchdown) - Typically called the “Two-point conversion” (https://operations.nfl.com/the-rules/nfl-video-rulebook/scoring-plays/) Given the box score values for two competing teams, calculate the point total for each team.

输入描述:

There are two lines of input each containing five space-separated non-negative integers, , , , and representing the number of Touchdowns, Field goals, Safeties, Points-after-touchdown andtwo-point Conversions after touchdown respectively. (). The first line represents the box score for the visiting team, and the second linerepresents the box score for the home team. 

输出描述:

The single output line consists of two space-separated integers showing the visiting score and the home score respectively
示例1

输入

复制
1 3 0 0 1
3 1 1 1 1

输出

复制
17 26