import java.util.Scanner; class Another { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); while (scanner.hasNext()) { int start = scanner.nextInt(); int first = scanner.nextInt(); int second = scanner.nextInt(); int third = scanner.nextInt(); if (start == 0 && first == 0 && second == 0 && third == 0) break; System.out.println(1080 + ((start - first + 40) % 40 + (second - first + 40) % 40 + (second - third + 40) % 40) * 9); } } }
কোন মন্তব্য নেই:
একটি মন্তব্য পোস্ট করুন