102220: [AtCoder]ABC222 A - Four Digits

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

Score : $100$ points

Problem Statement

You are given an integer $N$ between $0$ and $9999$ (inclusive).

Print it as a four-digit string after appending to it the necessary number of leading zeros.

Constraints

  • $0 \leq N \leq 9999$
  • $N$ is an integer.

Input

Input is given from Standard Input in the following format:

$N$

Output

Print the answer.


Sample Input 1

321

Sample Output 1

0321

$321$ has three digits, so we need to add one leading zero to it to make it have four digits.


Sample Input 2

7777

Sample Output 2

7777

Sample Input 3

1

Sample Output 3

0001

Input

题意翻译

输入自然数 $N(0\le N\le9999)$ 并输出,若不足 $4$ 位,用前导 0 补足后再输出。

Output

得分:100分

问题描述

你将得到一个在0到9999(含)之间的整数N。

将它打印为一个四位字符串,前面补足必要数量的前导零。

限制条件

  • $0 \leq N \leq 9999$
  • N是一个整数。

输入

输入以以下格式从标准输入给出:

$N$

输出

打印答案。


样例输入1

321

样例输出1

0321

$321$有三位数字,所以我们需要给它添加一个前导零以使其有四位数字。


样例输入2

7777

样例输出2

7777

样例输入3

1

样例输出3

0001

加入题单

算法标签: