#include int modular17(int input){ while(input>=17){ input-=17; } return input; } int main(void){ int query; int i,j,k; int times; int sum; int history[4]; scanf("%d",&query); for(i=0;i