import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int price = 0; float weight = scanner.nextFloat(); char ch = scanner.next().charAt(0); if((int) (weight * 10) % 10 == 0){ price = 20 + ((int) weight - 1); }else{ price = 20 + (int) weight; } if(ch == 'y'){ price += 5; } System.out.print(price); } }