#import <Foundation/Foundation.h>

int main (int argc, const char * argv[]) {
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];

	NSArray *weekdays = [NSArray arrayWithObjects:@"SUN", @"MON", @"TUE", @"WED", @"THU", @"FRI", @"SAT", nil];
	
	NSDate *today = [NSDate date];
	NSCalendar *cal = [[NSCalendar alloc]
					   initWithCalendarIdentifier:NSGregorianCalendar];
	
	NSDateComponents *oneYear = [[NSDateComponents alloc] init];
	[oneYear setYear:1];
	NSDate *newDate = [cal dateByAddingComponents:oneYear toDate:today options:0];
	
	NSDateComponents *oneYearComp = [cal components:NSWeekdayCalendarUnit fromDate:newDate];
	
	NSLog(@"%@",[weekdays objectAtIndex:[oneYearComp weekday] - 1]);
    [pool drain];
    return 0;
}
