Computation of the date either previous or forthcoming dates is quiet easy. But it is quiet difficult to calculate the day from a particular given date. 
You are required to find a day from a particular date given to you.

-----Input-----
It consists of a single line entry consisting of date in format dd mm yyyy.
i.e. the input line consists of the three numbers written in order followed by spaces.
Eg. Input for 18-12-1990 is be written as 18 12 1990

-----Output-----
It consists of single line output showing the day for that particular date.

-----Example-----
Input:
14 3 2012

Output:
Wednesday

Difficulty: interview

Starter code:

Solutions:
import sys
import datetime
a,b,c = list(map(int,sys.stdin.readline().split()))
d = datetime.date(c,b,a)
print(d.strftime("%A"))

import sys
from datetime import date
a,b,c = list(map(int,sys.stdin.readline().split()))
d = date(c,b,a)
print(d.strftime("%A"))

import sys
from datetime import date
a,b,c = list(map(int,sys.stdin.readline().split()))
day = date(c,b,a)
print(day.strftime("%A"))


import sys
from datetime import date

def main():
 s = sys.stdin.readline
 dateis = list(map(int, s().strip().split()))
 day = dateis[0]
 month = dateis[1]
 year = dateis[2]
 ans = date(year, month, day).weekday()
 if ans == 0:
  print("Monday")
 elif ans == 1:
  print("Tuesday")
 elif ans == 2:
  print("Wednesday")
 elif ans == 3:
  print("Thursday")
 elif ans == 4:
  print("Friday")
 elif ans == 5:
  print("Saturday")
 else:
  print("Sunday")

def __starting_point():
 main()
 

__starting_point()