import java.util.Scanner;
class Stock {
String symbol;
String name ;
double previousClosingPrice;
double currentPrice;
public Stock(String symbol, String name) {
this.symbol = symbol;
this.name = name;
}
double getChangePercent(){
return (previousClosingPrice - currentPrice)/currentPrice * 100;
}
}
public class t4 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String symbol = sc.nextLine();
String name =sc.nextLine();
Stock s = new Stock(symbol, name);
s.previousClosingPrice = sc.nextDouble();
s.currentPrice = sc.nextDouble();
System.out.println("股票代码为"+s.symbol);
System.out.println("股票名称为"+s.name);
System.out.println("昨天的股票值为"+s.previousClosingPrice);
System.out.println("今天的股票值为"+s.currentPrice);
System.out.println("市值变化百分比为"+s.getChangePercent());
}
}