package no425; import java.util.Scanner; public class Main { static int N = 1000; public static void main(String[] args) { Scanner sc = new Scanner(System.in); int p0 = sc.nextInt(); int q = sc.nextInt(); double[][] dp = new double[N+1][101]; dp[1][p0] = 1D / 3; double ans = 1D / 3; for(int i=1;i