A - Orange Editorial /

Time Limit: 2 sec / Memory Limit: 1024 MiB

問題文

みかんが N 個あります。高橋君はみかんが残っている限り 1 つずつ食べていきます。ただし、みかんを 3 つ食べたら満足して食べるのをやめます。みかんはいくつ残りますか。

制約

  • 1\leq N\leq 100
  • N は整数

入力

入力は以下の形式で標準入力から与えられる。

N

出力

答えを出力せよ。


入力例 1

5

出力例 1

2

高橋君はみかんを 3 つ食べると満足するので、みかんは 2 個残ります。


入力例 2

2

出力例 2

0

高橋君は満足する前にすべてのみかんを食べてしまうので、みかんは残りません。

Problem Statement

There are N oranges. He repeats eating one orange as long as there is at least one, but he will be satisfied and stop eating after eating three. How many oranges will be left?

Constraints

  • 1\leq N\leq 100
  • N is an integer.

Input

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

N

Output

Print the answer.


Sample Input 1

5

Sample Output 1

2

He will be satisfied after eating three oranges, so two oranges will be left.


Sample Input 2

2

Sample Output 2

0

He eats up all the oranges before being satisfied, so no oranges will be left.