ano = int(input())
ano_campeao = 1958, 1962, 1970, 1994, 2002

if ano in ano_campeao: 
    print("S")
else:
    print("N")
    

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: