Start: Dec, 04, 2016 12:00:00
杭州师范大学第十届程序设计竞赛—正式
End: Dec, 04, 2016 17:00:00
Time elapsed:
Time remaining:

Problem_ID: C
Result: Accepted
Time: 1ms
Memory: 1092kB
In contest: 1075

#include <stdlib.h>
#include <stdio.h>
#include <math.h>


int main() {
	int i, t, age, temp;
	scanf("%d", &t);
	while(t--) {
		scanf("%d", &age);
		if(age - 7 >= 8)
			printf("%d\n", age - 7);
		else
			printf("-1\n");
	}
}