#include <stdio.h>

int main() {
     int a[3];
     int b[2];
    int l=0,n=0,g=0,r;
    float y=0,x=0;
    for(int i=0;i<3;i++)
    {
        scanf("%d",&a[i]);
    }
    for(int i=0;i<2;i++)
    {
        scanf("%d",&b[i]);
    }
    for(int o=0;o<2;o++)
    {
        for(int p=o+1;p<3;p++)
                { 
                {
                   l=a[o];
                   a[o]=a[p];
                    a[p]=l;
                }
            }
    }
    if(b[0]>b[1])
    {
        b[0]=b[1];
    }
  for(g=0;g<3;g++)
      {
       if(100<=a[g]<=2000)
           break;
      }
    for(r=0;r<2;r++)
        {
            if(100<=b[r]<=2000)
                break;
        }
  
    x=a[2]+b[0];
    y=x/10;
    x=x+y;
    printf("%.1f",x);
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: