public class Solution { public static void main(String[] args) throws Exception { Scanner scanner = new Scanner(System.in); String name = scanner.nextLine(); int money = scanner.nextInt(); int years = scanner.nextInt(); System.out.println(name + " получает " + money + " через " + years + " лет."); } }