1. 


/**
* Miesel Christoph
* Seilbeck Robert
* Wolfram Andre
*
* Zeit 0.330
*/

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

public class PowerOfCryptography {

public static void main(String[] args) throws IOException {

//Einlesen der Zahlen in Doubles zeilenweise
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String line;
ArrayList<Double> values = new ArrayList<Double>();

while (true) {
line = in.readLine();
if (line == null || line.length() == 0) {
break;
}
values.add(Double.parseDouble(line));
}

for (int i = 0; i < values.size() - 1; i += 2) {
//Berechnen der Wurzel ├╝ber Exponentzialfuntkion und ln(Sie Wikipedia "Wurzel"
System.out.println(Math.round(Math.exp(Math.log(values.get(i + 1))

/ values.get(i))));
}
}
}