#import <Foundation/Foundation.h>

int main(int argc, const char * argv[]) {
    @autoreleasepool {
        NSData *stdinData = [[NSFileHandle fileHandleWithStandardInput] availableData];
        NSString *s = [[NSString alloc] initWithData:stdinData encoding:NSUTF8StringEncoding];
        NSString *answer = @"No";
        
        int a=0,b=0,c=0;
        for(int i=0;i<3;i++){
            NSString *buf = [s substringWithRange:NSMakeRange(i,1)];
            if ([buf isEqualToString:@"a"]){
                a++;
            }
            else if ([buf isEqualToString:@"b"]){
                b++;
            }
            else{
                c++;
            }
        }
        if (a==1 && b==1 && c==1) {
            answer = @"Yes";
        }
        
        NSFileHandle *fileHandle = [NSFileHandle fileHandleWithStandardOutput];
        [fileHandle writeData:[answer dataUsingEncoding:NSUTF8StringEncoding]];
        [fileHandle writeData:[@"\n" dataUsingEncoding:NSUTF8StringEncoding]];
        [fileHandle closeFile];
    }
    
    return 0;
}
