#import <Foundation/Foundation.h>

int main (int argc, const char * argv[]) {
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
	
	NSString *str1 = @"0123456789";
	NSRange range = NSMakeRange(2, 4);
	NSString *str2 = [str1 substringWithRange:range];
	
	NSLog(@"%@", str2);
	
    [pool drain];
    return 0;
}