import java.io.*; public class Mobiilihinnad{ public static void main(String[] arg) throws IOException{ double rlesumma=0; BufferedReader sisse=new BufferedReader( new InputStreamReader(System.in) ); // System.out.println("Palun andmed:"); String tekst=sisse.readLine(); while(tekst.length()>0){ int tyhik=tekst.indexOf(" "); String firma=tekst.substring(0, tyhik); double makse=Double.parseDouble(tekst.substring(tyhik+1)); if(firma.toLowerCase().equals("rle")){rlesumma+=makse;} // System.out.println("Palun andmed:"); tekst=sisse.readLine(); } System.out.println("Kokku RLE: "+rlesumma); } }