
Photo by
yoshinanashigoto
日刊競プロ ABC011 -A - 来月は何月?
問題文
高橋君は、来月遊びに行く約束をしました。ですが、高橋君は頭が悪いので、来月が何月であるかが解りません。今月が何月かが与えられるので、来月が何月であるかを出力するプログラムを作ってあげてください。
考えたこと
12月の時だけ1月で対応してあげて、それ以外はN+1で対応する
N=int(input())
if N==12:
print (1)
else:
print (N+1)