You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
730 B
34 lines
730 B
#include <bits/stdc++.h>
|
|
|
|
using namespace std;
|
|
int res, day;
|
|
|
|
int main() {
|
|
freopen("apple.in", "r", stdin);
|
|
freopen("apple.out", "w", stdout);
|
|
int n;
|
|
cin >> n;
|
|
|
|
if (n == 1)
|
|
res = 1, day = 1;
|
|
else if (n == 2)
|
|
res = 2, day = 2;
|
|
else if (n == 3)
|
|
res = 3, day = 3;
|
|
else if (n == 4)
|
|
res = 3, day = 1;
|
|
else if (n == 5)
|
|
res = 4, day = 4;
|
|
else if (n == 6)
|
|
res = 4, day = 2;
|
|
else if (n == 7)
|
|
res = 4, day = 1;
|
|
else if (n == 8)
|
|
res = 5, day = 5;
|
|
else if (n == 9)
|
|
res = 5, day = 3;
|
|
else if (n == 10)
|
|
res = 5, day = 1;
|
|
cout << res << " " << day << endl;
|
|
return 0;
|
|
} |