import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scn = new Scanner(System.in); String input = scn.nextLine(); int birthYear = Integer.parseInt(input); int age = calcYear(birthYear); System.out.println(age); } public static int calcYear(int birthYear) { int age = 2017 - birthYear; return age; } }