class SumEvenOdd
{
public static void main(int a)
{
int AddEven=0,AddOdd=0;
for (int i=1;i<=a;i++)
{
if(i%2==0)
AddEven+=i;
else
AddOdd+=i;
}
System.out.println("The Sum Of All Even Numbers Till "+a+"= "+AddEven);
System.out.println("The Sum Of All Odd Numbers Till "+a+"= "+AddOdd);
}
}