Problem2504--黄灯共有几个?

2504: 黄灯共有几个?

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

“十一”国庆节,商店的前面装了一排红黄相间的彩灯,已知两头装的都是红灯,红灯共有x(例如31)个,黄灯共有几个?

Input

31

Output

30

Sample Input Copy

30

Sample Output Copy

31

Source/Category