/**
* Created by anton on 09.05.17.
*/
import java.io.IOException;
import java.net.URL;
public class Main {
public static void main(String[] args) throws IOException {
String from = "USD";
String to = "RUB";
java.net.URL url = new java.net.URL(
"http://www.webservicex.net/CurrencyConvertor.asmx"
+ "/ConversionRate?FromCurrency=" + from
+ "&ToCurrency=" + to);
java.util.Scanner sc = new java.util.Scanner(url.openStream());
sc.nextLine();
String str = sc.nextLine().replaceAll("^.*>(.*)<.*$", "$1");
sc.close();
Double rate = Double.parseDouble(str);
System.out.println(rate);
}
}