#abc269a. A - Anyway Takahashi

A - Anyway Takahashi

Score : 100100 points

问题描述

给定整数 aabbccdd。按如下方式打印两行内容。

第一行应包含计算 (a+b)×(cd)(a + b) \times (c - d) 的结果,表示为一个整数。 第二行无论输入如何,都应包含 Takahashi

以上为通义千问 qwen-max 翻译,仅供参考。

Problem Statement

You are given integers aa, bb, cc, and dd. Print two lines as follows.

The first line should contain the result of calculating (a+b)×(cd)(a + b) \times (c - d) as an integer. The second line should contain Takahashi, regardless of the input.

Constraints

  • 100a,b,c,d100-100 \leq a, b, c, d \leq 100
  • aa, bb, cc, and dd are integers.

Input

The input is given from Standard Input in the following format:

aa bb cc dd

Output

Print two lines according to the Problem Statement.

Sample Input 1

1 2 5 3

Sample Output 1

6
Takahashi

We have (1+2)×(53)=3×2=6(1 + 2) \times(5 - 3) = 3 \times 2 = 6, so the first line should contain 66. The second line should contain Takahashi. Lowercasing the first character or incorrect spelling will not be accepted, so be careful.

Sample Input 2

10 -20 30 -40

Sample Output 2

-700
Takahashi

The input or output may contain negative numbers.

Sample Input 3

100 100 100 -100

Sample Output 3

40000
Takahashi

update @ 2024/3/10 11:20:21