import java.util.*;
import java.io.BufferedReader;
import java.io.FileReader;
public class interpreter {
public static void main( String [ ] args ) {
Scanner scan = new Scanner(System.in);
HashMap<String, Integer> h = new HashMap<String, Integer>();
try (BufferedReader br = new BufferedReader(new FileReader("espresso.txt"))) {
String line;
while ((line = br.readLine()) != null) {
if (line.indexOf("read") != -1)
{
String s = line.substring(line.indexOf("read")+4, line.length());
System.out.println("Enter a value for the integer" + s);
int x = scan.nextInt();
h.put(s, x);
}
if (line.indexOf("=") != -1)
{
String s = line.substring(0, line.indexOf("=")-1);
String q = line.substring(line.indexOf("=")+1, line.length());
int x = Integer.parseInt(q);
h.put(s, x);
}
/*if (line.indexOf("print") != -1)
{
}*/
/* if (line.indexOf("+") != -1 || line.indexOf("-") != -1 || line.indexOf("*") != -1 || line.indexOf("/") != -1)
{
}*/
}
} catch (Exception e) {
e.printStackTrace();
System.out.println("Syntax error in your favour collect $200.");
}
scan.close();
System.out.println(h);
};
}