#include <stdio.h> int main() { int n,y=0,d=0; scanf("%d",&n); y = n/(365*24*60); d = n%(365*24*60); d = d/(24*60); printf("%d年%d天",y,d); return 0; }