Problem:
Score : 100 points

Problem Statement

An elementary school student Takahashi has come to a variety store.

He has two coins, A-yen and B-yen coins (yen is the currency of Japan), and wants to buy a toy that costs C yen. Can he buy it?

Note that he lives in Takahashi Kingdom, and may have coins that do not exist in Japan.

Constraints

All input values are integers.

1 \leq A, B \leq 500

1 \leq C \leq 1000

Input

Input is given from Standard Input in the following format:

A B C

Output

If Takahashi can buy the toy, print Yes; if he cannot, print No.

Sample Input 1

50 100 120

Sample Output 1

Yes

He has 50 + 100 = 150 yen, so he can buy the 120-yen toy.

Sample Input 2

500 100 1000

Sample Output 2

No

He has 500 + 100 = 600 yen, but he cannot buy the 1000-yen toy.

Sample Input 3

19 123 143

Sample Output 3

No

There are 19-yen and 123-yen coins in Takahashi Kingdom, which are rather hard to use.

Sample Input 4

19 123 142

Sample Output 4

Yes

Solution in Java8 (OpenJDK 1.8.0) (judge verdict: Accepted)


import java.util.*;
public class Main {

    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println(sc.nextInt()+sc.nextInt()>=sc.nextInt()?"Yes":"No");
//        Location[] points=new Location[5];
//        for(int i=0;i<5;i++){
//            points[i]=new Location(random(0,100),random(0,100));
//        }
//        Comp c=new Comp();
//        Arrays.sort(points,c);
//        for(int i=0;i<5;i++){
//            points[i].show();
//        }
        
    }
    static int random(int rangemin,int rangemax){
        if(rangemin>=rangemax){
            return 0;
        }else{
            return (int)(rangemin+Math.random()*(rangemax-rangemin));
        }
    }
}
class Comp implements Comparator{
    @Override
    public int compare(Object a1,Object a2){
        Location b1=(Location)a1;
        Location b2=(Location)b1;
        return b1.direction()>b2.direction()?1:-1;
    }
}
class Location{
    int x;
    int y;
    public Location(int x,int y){
        this.x=x;
        this.y=y;
    }
    double direction(){
        return Math.sqrt(x*x+y*y);
    }
    void show(){
        System.out.println("("+x+","+y+")"+this.direction());
    }
}