Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions Codeforces/Watermelon.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*-
"""
Created on Fri Apr 23 07:56:29 2021

@author: Nikhil Singh
"""
#1st line for taking input for the weight of the watermelon.
w=int(input())
#Asserting limit on input value of w.
1<=w<=100
#Output part
if w%2 == 0:
if w>2:
print('YES')
else:
print('NO')
else:
print('NO')