buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
n = int(input()) a = n % 10 if a == 2 or a == 4 or a == 5 or a == 7 or a == 9: print('hon') if a== 1 or a== 6 or a== 8: print('pon') if a == 3: print('bon')
n = int(input()) a = n % 10 if a == 2 or a == 4 or a == 5 or a == 7 or a == 9: print('hon') if a== 0 or a== 1 or a== 6 or a== 8: print('pon') if a == 3: print('bon')
[["+", 15, 679, 31, 679, 31, 679, 31, 666, 0, 612], ["+", 0, 57, 15, 679, 31, 679, 31, 679, 17, 354], ["+", 15, 679, 31, 679, 31, 679, 12, 666, 0, 22], ["+", 15, 679, 31, 679, 31, 679, 12, 666, 667, 60]]
5
70
/* ex3_2 urah */ #include <stdio.h> int main(void) { int num; // 入力受け取り scanf("%d", &num); // 条件分岐 if (num % 10 == 3) { // 1の位の数字を見ていく printf("bon"); } else if (num == 0 || num % 10 == 1 || num % 10 == 6 || num % 10 == 8) { printf("pon"); } else { printf("hon"); } return 0; }
/* ex3_2 urah */ #include <stdio.h> int main(void) { int num; // 入力受け取り scanf("%d", &num); // 条件分岐 if (num % 10 == 3) { // 1の位の数字を見ていく printf("bon"); } else if (num % 10 == 0 || num % 10 == 1 || num % 10 == 6 || num % 10 == 8) { printf("pon"); } else { printf("hon"); } return 0; }...
[["+", 31, 16, 31, 16, 31, 16, 31, 16, 17, 109], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 12, 13]]
0
90
last = int(input()[-1]) if last in [2,4,5,7,9]: print('hon') elif last in [0,1,6,8]: print('pon') else: print('hon')
last = int(input()[-1]) if last in [2,4,5,7,9]: print('hon') elif last in [0,1,6,8]: print('pon') else: print('bon')
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
60
N = str(N) N = N[-1] hon = [str(n) for n in list([2,4,5,7,9])] pon = [str(n) for n in list([0,1,6,8])] bon = ["3"] if N in hon: print('hon') elif N in pon: print("pon") elif N in bon: print("bon") else: print("booom")
N = (input()) N = N[-1] hon = [str(n) for n in list([2,4,5,7,9])] pon = [str(n) for n in list([0,1,6,8])] bon = ["3"] if N in hon: print('hon') elif N in pon: print("pon") elif N in bon: print("bon") else: print("booom")
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 23, 0, 652, 63, 22], ["+", 0, 662, 12, 23, 0, 652, 3, 4, 0, 24], ["+", 0, 662, 12, 23, 0, 652, 3, 4, 0, 25]]
5
109
n = input() n %= 10 hon = [2,4,5,7,9] pon = [0,1,6,8] bon = [3] if n in hon: print("hon") elif n in pon: print("pon") else: print("bon")
n = int(input()) n %= 10 hon = [2,4,5,7,9] pon = [0,1,6,8] bon = [3] if n in hon: print("hon") elif n in pon: print("pon") else: print("bon")
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
67
#include "bits/stdc++.h" #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep2(i, s, n) for (int i = (s); i < (int)(n); i++) using namespace std; const int INF = 1 << 30; const long long MOD = 1000000000 + 7; int main() { int N; cin >> N; switch (N % 10) { case 3: cout << "bon"; break; ...
#include "bits/stdc++.h" #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep2(i, s, n) for (int i = (s); i < (int)(n); i++) using namespace std; const int INF = 1 << 30; const long long MOD = 1000000000 + 7; int main() { int N; cin >> N; switch (N % 10) { case 3: cout << "bon"; break; ...
[["+", 0, 99, 8, 9, 0, 100, 0, 93, 0, 94], ["+", 0, 99, 8, 9, 0, 100, 0, 93, 0, 35], ["+", 0, 99, 8, 9, 0, 100, 0, 1, 0, 35]]
1
101
#include <stdio.h> int main() { int n; int a; scanf("%d", &n); a = n % 10; if (a == 3) printf("bon"); else if (a == 0 || a == 1 || a == 6 || a == 8) printf("hon"); else printf("pon"); return 0; }
#include <stdio.h> int main() { int n; int a; scanf("%d", &n); a = n % 10; if (a == 3) printf("bon"); else if (a == 0 || a == 1 || a == 6 || a == 8) printf("pon"); else printf("hon"); return 0; }
[["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
80
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { int k; cin >> k; int n = k % 10; if (n == 3) { cout << "bon" << "\n"; } if (n == 0 || n == 1 || n == 6 || n == 8) { cout << "pon" << "\n"; } else cout << "hon" << "\n"; }
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { int k; cin >> k; int n = k % 10; if (n == 3) { cout << "bon" << "\n"; } else if (n == 0 || n == 1 || n == 6 || n == 8) { cout << "pon" << "\n"; } else { cout << "hon" << "\n"; } }
[["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 75, 76, 0, 57, 75, 76, 0, 9, 0, 45], ["+", 75, 76, 0, 57, 75, 76, 0, 9, 0, 46]]
1
87
#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { int n; cin >> n; n /= 10; if (n == 3) cout << "bon"; else if (n == 0 or n == 1 or n == 6 or n == 8) cout << "pon"; else cout << "hon"; return 0; }
#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { int n; cin >> n; n %= 10; if (n == 3) cout << "bon"; else if (n == 0 or n == 1 or n == 6 or n == 8) cout << "pon"; else cout << "hon"; return 0; }
[["-", 0, 14, 8, 9, 0, 1, 0, 11, 17, 90], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 132]]
1
80
a = input() s = a % 10 print("hon" if s ==2 or s == 4 or s == 5 or s == 7 or s == 9 else "pon" if s == 0 or s == 1 or s == 6 or s == 8 else "bon")
a = int(input()) s = a % 10 print("hon" if s ==2 or s == 4 or s == 5 or s == 7 or s == 9 else "pon" if s == 0 or s == 1 or s == 6 or s == 8 else "bon")
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
60
con1 = [2, 4, 5, 7, 9] con2 = 3 n = int(input()) if n in con1: print('hon') elif con2 == n: print('bon') else: print('pon')
con1 = [2, 4, 5, 7, 9] con2 = 3 n = int(input()[-1]) if n in con1: print('hon') elif con2 == n: print('bon') else: print('pon')
[["+", 0, 662, 12, 652, 3, 4, 0, 206, 0, 70], ["+", 12, 652, 3, 4, 0, 206, 206, 664, 17, 33], ["+", 12, 652, 3, 4, 0, 206, 206, 664, 28, 612], ["+", 0, 662, 12, 652, 3, 4, 0, 206, 0, 73]]
5
54
x = input()[-1] if x in [2,4,5,7,9]: print("hon") elif x in [0,1,6,8]: print("pon") else: print("bon")
x = int(input()[-1]) if x in [2,4,5,7,9]: print("hon") elif x in [0,1,6,8]: print("pon") else: print("bon")
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
57
N = input() one_digit = N % 10 if one_digit == 2 or one_digit == 4 or one_digit == 5 or one_digit == 7 or one_digit == 9: print("hon") elif one_digit == 0 or one_digit == 1 or one_digit == 6 or one_digit == 8: print("pon") else: print("bon")
N = input() one_digit = int(N) % 10 if one_digit == 2 or one_digit == 4 or one_digit == 5 or one_digit == 7 or one_digit == 9: print("hon") elif one_digit == 0 or one_digit == 1 or one_digit == 6 or one_digit == 8: print("pon") else: print("bon")
[["+", 0, 1, 0, 662, 12, 657, 31, 652, 63, 22], ["+", 0, 662, 12, 657, 31, 652, 3, 4, 0, 24], ["+", 0, 662, 12, 657, 31, 652, 3, 4, 0, 25]]
5
68
<?php fscanf(STDIN,"%d", $n); $r = $n % 10; if($r = 3){ echo "bon"; } else if(in_array($r,[0,1,6,8])){ echo "pon"; } else { echo "hon"; } ?>
<?php fscanf(STDIN,"%d", $n); $r = $n % 10; if($r == 3){ echo "bon"; } elseif(in_array($r,[0,1,6,8])){ echo "pon"; } else { echo "hon"; } ?>
[["-", 0, 493, 0, 57, 15, 23, 0, 11, 0, 32], ["+", 0, 493, 0, 57, 15, 23, 0, 16, 17, 60], ["-", 36, 36, 0, 493, 0, 57, 75, 76, 0, 95], ["-", 0, 493, 0, 57, 75, 76, 8, 57, 0, 121], ["+", 36, 36, 0, 493, 0, 57, 75, 625, 0, 628]]
6
70
n = gets.chomp.chars.map(&:to_i) if n[-1] == 3 p 'bon' elsif n[-1] == 0 || n[-1] ==1 || n[-1] ==6 || n[-1] == 8 p 'pon' else p 'hon' end
n = gets.chomp.chars.map(&:to_i) if n[-1] == 3 puts 'bon' elsif n[-1] == 0 || n[-1] == 1 || n[-1] == 6 || n[-1] == 8 puts 'pon' else puts 'hon' end
[["-", 0, 493, 0, 121, 64, 749, 0, 652, 735, 22], ["+", 0, 493, 0, 121, 64, 749, 0, 652, 735, 22], ["-", 0, 121, 75, 759, 64, 749, 0, 652, 735, 22], ["+", 0, 121, 75, 759, 64, 749, 0, 652, 735, 22], ["-", 0, 121, 75, 759, 75, 95, 0, 652, 735, 22], ["+", 0, 121, 75, 759, 75, 95, 0, 652, 735, 22]]
4
67
def solve(n): p = n % 10 if p in [2,3,5,7,9]: return "hon" elif p in [0,1,6,8]: return "pon" else: return "bon" n = int(input()) print(solve(n))
def solve(n): p = n % 10 if p in [2,4,5,7,9]: return "hon" elif p in [0,1,6,8]: return "pon" else: return "bon" n = int(input()) print(solve(n))
[["-", 8, 196, 0, 57, 15, 666, 0, 634, 0, 612], ["+", 8, 196, 0, 57, 15, 666, 0, 634, 0, 612]]
5
68
def solve(): if s[-1] == "3": print("bon") elif s[-1] in "0168": print("pon") else: print("hon") return #n, m = [int(ii) for ii in raw_input().split()] s = raw_input()
def solve(): if s[-1] == "3": print("bon") elif s[-1] in "0168": print("pon") else: print("hon") return #n, m = [int(ii) for ii in raw_input().split()] s = input() solve()
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25], ["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22]]
5
54
# -*- coding: utf-8 -*- val=int(input()) hon=[2,4,5,7,9] pon=[0,1,6,8] print(val%10) if(val%10 in hon): print("hon") elif(val%10 in pon): print("pon") else: print("bon")
# -*- coding: utf-8 -*- val=int(input()) hon=[2,4,5,7,9] pon=[0,1,6,8] if(val%10 in hon): print("hon") elif(val%10 in pon): print("pon") else: print("bon")
[["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 31, 22], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 109], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
77
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int n1; cin >> n1; string str = to_string(n1); int n = str.size(); if (str[n - 1] == '2' || str[n - 1] == '4' || str[n - 1] == '5' || str[n - 1] == '7'...
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int n1; cin >> n1; string str = to_string(n1); int n = str.size(); if (str[n - 1] == '2' || str[n - 1] == '4' || str[n - 1] == '5' || str[n - 1] == '7'...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
197
#include <bits/stdc++.h> using namespace std; #define rep(i, a, n) for (int i = a; i < n; i++) #define per(i, a, n) for (int i = n - 1; i >= a; i--) #define pb push_back #define mp make_pair #define all(x) (x).begin(), (x).end() typedef long long ll; typedef vector<int> vi; typedef vector<ll> vll; typedef vector<pai...
#include <bits/stdc++.h> using namespace std; #define rep(i, a, n) for (int i = a; i < n; i++) #define per(i, a, n) for (int i = n - 1; i >= a; i--) #define pb push_back #define mp make_pair #define all(x) (x).begin(), (x).end() typedef long long ll; typedef vector<int> vi; typedef vector<ll> vll; typedef vector<pai...
[["+", 0, 57, 15, 339, 51, 16, 12, 103, 0, 104], ["+", 31, 16, 31, 16, 31, 16, 12, 103, 0, 104], ["+", 31, 16, 31, 16, 12, 16, 12, 103, 0, 104], ["+", 51, 16, 31, 16, 12, 16, 12, 103, 0, 104], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 104]]
1
596
N = input() num = int(N) if num in (2,4,5,7,9): print('hon') elif num in (0,1,6,8): print('pon') else: print('bon')
N = input() num = int(N) % 10 if num in (2,4,5,7,9): print('hon') elif num in (0,1,6,8): print('pon') else: print('bon')
[["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 109], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]]
5
59
#include <bits/stdc++.h> #define long long long int using namespace std; #ifdef JUDGE std::ifstream cin("input.txt"); std::ofstream cout("output.txt"); #else using std::cin; using std::cout; #endif using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); cout....
#include <bits/stdc++.h> #define long long long int using namespace std; #ifdef JUDGE std::ifstream cin("input.txt"); std::ofstream cout("output.txt"); #else using std::cin; using std::cout; #endif using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); cout....
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 33], ["+", 0, 43, 49, 50, 51, 16, 12, 103, 0, 104], ["+", 0, 43, 49, 50, 51, 16, 12, 103, 0, 125]]
1
150
#include <algorithm> #include <iostream> #include <vector> using namespace std; int main() { long N, M, X, max = 0, cnt = 0; cin >> N; M = N % 10; if (N == 3) { cout << "bon"; } else if (N == 0 || N == 1 || N == 6 || N == 8) { cout << "pon"; } else { cout << "hon"; } }
#include <algorithm> #include <iostream> #include <vector> using namespace std; int main() { long N, M, X, max = 0, cnt = 0; cin >> N; N = N % 10; if (N == 3) { cout << "bon"; } else if (N == 0 || N == 1 || N == 6 || N == 8) { cout << "pon"; } else { cout << "hon"; } }
[["-", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22]]
1
91
n=input() a=[2,4,5,7,9] b=[0,1,6,8] c=[3] if(int(n[-1]) in a): print('hon') elif(int(n[-1]) in b): print('pon') else: print('pon')
n=input() a=[2,4,5,7,9] b=[0,1,6,8] c=[3] if(int(n[-1]) in a): print('hon') elif(int(n[-1]) in b): print('pon') else: print('bon')
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
82
n_last =list(input())[-1] if n_last in [3]: print('bon') elif n_last in [0,1,6,8] : print('pon') else: print('hon')
n_last = int(list(input())[-1]) if n_last in [3]: print('bon') elif n_last in [0,1,6,8] : print('pon') else: print('hon')
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
52
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> using namespace __gnu_pbds; using namespace std; #define fi first #define se second #define ll long long #define pb push_back #define mp make_pair #define pii pair<int, int> #define vi vector<int> #define mii map<int, int> #define pqb priority_queue<in...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> using namespace __gnu_pbds; using namespace std; #define fi first #define se second #define ll long long #define pb push_back #define mp make_pair #define pii pair<int, int> #define vi vector<int> #define mii map<int, int> #define pqb priority_queue<in...
[["-", 15, 339, 51, 16, 12, 23, 0, 16, 12, 13], ["+", 15, 339, 51, 16, 12, 23, 0, 16, 12, 13]]
1
214
n = gets.to_i.modulo(10) case n when 2,4,5,7,9 p 'hon' when 0,1,6,8 p 'pon' else p 'bon' end
n = gets.to_i.modulo(10) case n when 2,4,5,7,9 print 'hon' when 0,1,6,8 print 'pon' else print 'bon' end
[["-", 0, 173, 0, 763, 8, 749, 0, 652, 735, 22], ["+", 0, 173, 0, 763, 8, 749, 0, 652, 735, 22], ["-", 0, 493, 0, 173, 0, 95, 0, 652, 735, 22], ["+", 0, 493, 0, 173, 0, 95, 0, 652, 735, 22]]
4
44
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; int main() { int n; cin >> n; n %= 10; if (n == 3) cout << "b"; else if (n == 0 && n == 1 && n == 6 && n == 8) cout << "p"; else cout << "h"; cout << ...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; int main() { int n; cin >> n; n %= 10; if (n == 3) cout << "b"; else if (n == 0 || n == 1 || n == 6 || n == 8) cout << "p"; else cout << "h"; cout << ...
[["-", 15, 339, 51, 16, 31, 16, 31, 16, 17, 98], ["+", 15, 339, 51, 16, 31, 16, 31, 16, 17, 106], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 106], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 106]]
1
102
n=int(input()) if n in [2,4,5,7,9]: print('hon') elif n in [0,1,6,8]: print('pon') else: print('bon')
n=int(input()) n=n%10 if n in [2,4,5,7,9]: print('hon') elif n in [0,1,6,8]: print('pon') else: print('bon')
[["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 31, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 109], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]]
5
56
#include <bits/stdc++.h> using namespace std; void print(int n) { n = n % 10; if (n == 2 || n == 4 || n == 5 || n == 7 || n == 9) cout << "hon"; else if (n == 0 || n == 1 || n == 6 || n == 8) cout << "bon"; else cout << "pon"; } int main() { int n; cin >> n; print(n); return 0; }
#include <bits/stdc++.h> using namespace std; void print(int n) { n = n % 10; if (n == 2 || n == 4 || n == 5 || n == 7 || n == 9) cout << "hon"; else if (n == 0 || n == 1 || n == 6 || n == 8) cout << "pon"; else cout << "bon"; } int main() { int n; cin >> n; print(n); return 0; }
[["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
101
// #pragma GCC target("avx") // CPU 処理並列化 // #pragma GCC optimize("O3") // CPU 処理並列化 // #pragma GCC optimize("unroll-loops") // 条件処理の呼び出しを減らす // #define BEGIN_STACK_EXTEND(size) void * stack_extend_memory_ = // malloc(size);void * stack_extend_origin_memory_;char * // stack_extend_dummy_memory_ = (char*)alloca((1+(i...
// #pragma GCC target("avx") // CPU 処理並列化 // #pragma GCC optimize("O3") // CPU 処理並列化 // #pragma GCC optimize("unroll-loops") // 条件処理の呼び出しを減らす // #define BEGIN_STACK_EXTEND(size) void * stack_extend_memory_ = // malloc(size);void * stack_extend_origin_memory_;char * // stack_extend_dummy_memory_ = (char*)alloca((1+(i...
[["-", 0, 57, 15, 339, 51, 16, 12, 103, 0, 104]]
1
838
N=int(input()) def a(N): if N%10==3: print("bon") elif N%10==0 or N%10==1 or N%10==6 or N%10==8: print("hon") else: print("pon") a(N)
N=int(input()) def a(N): if N%10==3: print("bon") elif N%10==0 or N%10==1 or N%10==6 or N%10==8: print("pon") else: print("hon") a(N)
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
70
import java.util.Scanner; public class Main { public static void main(String[] args) { try (Scanner sc = new Scanner(System.in)) { int N = sc.nextInt(); System.out.println((N == 0 || N == 1 || N == 6 || N == 8) ? "pon" : (N == 3) ? "bon" ...
import java.util.Scanner; public class Main { public static void main(String[] args) { try (Scanner sc = new Scanner(System.in)) { int N = sc.nextInt() % 10; System.out.println((N == 0 || N == 1 || N == 6 || N == 8) ? "pon" : (N == 3) ? "bon" ...
[["+", 8, 196, 0, 503, 49, 200, 51, 16, 17, 109], ["+", 8, 196, 0, 503, 49, 200, 51, 16, 12, 499]]
3
91
#include <bits/stdc++.h> typedef long long ll; #define rep(i, a, n) for (ll i = a; i < n; i++) #define rrep(i, a, n) for (ll i = n; i >= a; i--) #define LINF 1e18 #define INF 1e9 using namespace std; #define fs first #define sc second using P = pair<ll, ll>; using PQ = priority_queue<P, vector<P>, greater<P>>; signe...
#include <bits/stdc++.h> typedef long long ll; #define rep(i, a, n) for (ll i = a; i < n; i++) #define rrep(i, a, n) for (ll i = n; i >= a; i--) #define LINF 1e18 #define INF 1e9 using namespace std; #define fs first #define sc second using P = pair<ll, ll>; using PQ = priority_queue<P, vector<P>, greater<P>>; signe...
[["-", 8, 9, 0, 99, 8, 9, 0, 100, 51, 13], ["+", 8, 9, 0, 99, 8, 9, 0, 100, 51, 13]]
1
158
N = input() if N[-1] == "3": print("bon") elif N[-1] == 0 or N[-1] == 1 or N[-1] == 6 or N[-1] == 8: print("pon") else: print("hon")
N = input() if N[-1] == "3": print("bon") elif N[-1] == "0" or N[-1] == "1" or N[-1] == "6" or N[-1] == "8": print("pon") else: print("hon")
[["+", 31, 679, 31, 679, 31, 666, 0, 557, 0, 654], ["+", 31, 679, 31, 679, 31, 666, 0, 557, 0, 655], ["+", 31, 679, 31, 679, 12, 666, 0, 557, 0, 654], ["+", 31, 679, 31, 679, 12, 666, 0, 557, 0, 655], ["+", 15, 679, 31, 679, 12, 666, 0, 557, 0, 654], ["+", 15, 679, 31, 679, 12, 666, 0, 557, 0, 655], ["+", 75, 665, 15, ...
5
69
num = input() nums = [['2', '4', '5', '7', '9'], ['0', '1', '6', '8'], ['3']] pro = ['hon', 'pon', 'bon'] for i, vals in enumerate(nums): if num[0] in vals: print(pro[i]) break
num = input() nums = [['2', '4', '5', '7', '9'], ['0', '1', '6', '8'], ['3']] pro = ['hon', 'pon', 'bon'] for i, vals in enumerate(nums): if num[-1] in vals: print(pro[i]) break
[["-", 8, 196, 0, 57, 15, 666, 0, 206, 206, 612], ["+", 0, 57, 15, 666, 0, 206, 206, 664, 17, 33], ["+", 0, 57, 15, 666, 0, 206, 206, 664, 28, 612]]
5
95
n = int(input()) if n == 2: print("hon") elif n == 4: print("hon") elif n == 5: print("hon") elif n == 7: print("hon") elif n == 9: print("hon") elif n == 0: print("pon") elif n == 1: print("pon") elif n == 6: print("pon") elif n == 8: print("pon") else: print("bon")
n = int(input()[-1]) if n == 2: print("hon") elif n == 4: print("hon") elif n == 5: print("hon") elif n == 7: print("hon") elif n == 9: print("hon") elif n == 0: print("pon") elif n == 1: print("pon") elif n == 6: print("pon") elif n == 8: print("pon") else: print("bon")
[["+", 0, 662, 12, 652, 3, 4, 0, 206, 0, 70], ["+", 12, 652, 3, 4, 0, 206, 206, 664, 17, 33], ["+", 12, 652, 3, 4, 0, 206, 206, 664, 28, 612], ["+", 0, 662, 12, 652, 3, 4, 0, 206, 0, 73]]
5
115
// Problem : A - ∴ (Therefore) // Contest : AtCoder - AtCoder Beginner Contest 168 // URL : https://atcoder.jp/contests/abc168/tasks/abc168_a // Memory Limit : 1024 MB // Time Limit : 2000 ms // Powered by CP Editor (https://github.com/cpeditor/cpeditor) #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hp...
// Problem : A - ∴ (Therefore) // Contest : AtCoder - AtCoder Beginner Contest 168 // URL : https://atcoder.jp/contests/abc168/tasks/abc168_a // Memory Limit : 1024 MB // Time Limit : 2000 ms // Powered by CP Editor (https://github.com/cpeditor/cpeditor) #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hp...
[["-", 51, 16, 31, 16, 31, 16, 12, 16, 12, 13], ["+", 51, 16, 31, 16, 31, 16, 12, 16, 12, 13]]
1
567
/* ID: zhaowei10 TASK: LANG: C++14 */ #include <algorithm> #include <array> #include <bitset> #include <cassert> #include <climits> #include <cmath> #include <cstdio> #include <deque> #include <fstream> #include <functional> #include <iomanip> #include <iostream> #include <iterator> #include <list> #include <map> #incl...
/* ID: zhaowei10 TASK: LANG: C++14 */ #include <algorithm> #include <array> #include <bitset> #include <cassert> #include <climits> #include <cmath> #include <cstdio> #include <deque> #include <fstream> #include <functional> #include <iomanip> #include <iostream> #include <iterator> #include <list> #include <map> #incl...
[["+", 8, 9, 0, 43, 49, 50, 51, 83, 0, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 83, 0, 21]]
1
785
n = sys.stdin.readline().rstrip() hon = [2, 4, 5, 7, 9] pon = [0, 1, 6, 8] bon = [3] if int(n[-1]) in hon: print('hon') elif int(n[-1]) in pon: print('pon') elif int(n[-1]) in bon: print('bon')
import sys n = sys.stdin.readline().rstrip() hon = [2, 4, 5, 7, 9] pon = [0, 1, 6, 8] bon = [3] if int(n[-1]) in hon: print('hon') elif int(n[-1]) in pon: print('pon') elif int(n[-1]) in bon: print('bon')
[["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22]]
5
96
N = input() if N % 10 == 3: print('bon') elif N % 10 == 0: print('pon') elif N % 10 == 1: print('pon') elif N % 10 == 6: print('pon') elif N % 10 == 8: print('pon') else: print('hon')
N = int(input()) if N % 10 == 3: print('bon') elif N % 10 == 0: print('pon') elif N % 10 == 1: print('pon') elif N % 10 == 6: print('pon') elif N % 10 == 8: print('pon') else: print('hon')
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
78
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String N = sc.nextLine(); if (N.matches(".*[24579]$")) { System.out.println("pon"); } else if (N.matches(".*[0168]$")) { System.out.println("hon"); } else { ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String N = sc.nextLine(); if (N.matches(".*[24579]$")) { System.out.println("hon"); } else if (N.matches(".*[0168]$")) { System.out.println("pon"); } else { ...
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
107
#include <stdio.h> #include <string.h> void main() { int x, y; scanf("%d", &x); y = x % 10; if (y == 0 || y == 1 || y == 6 || y == 7) { printf("pon"); } else if (y == 3) { printf("bon"); } else { printf("hon"); } return 0; }
#include <stdio.h> #include <string.h> int main(void) { int x, y; scanf("%d", &x); y = x % 10; if (y == 0 || y == 1 || y == 6 || y == 8) { printf("pon\n"); } else if (y == 3) { printf("bon\n"); } else { printf("hon\n"); } return 0; }
[["-", 36, 36, 36, 36, 0, 30, 0, 14, 39, 40], ["+", 36, 36, 36, 36, 0, 30, 0, 14, 39, 40], ["+", 0, 14, 49, 53, 54, 55, 0, 56, 39, 40], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 12, 13], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
0
87
n = int(input()) if(n%10 in [2,4,5,7,9]): print("hon") elif n%10 == 6: print("bon") else: print("pon")
n = int(input()) if(n%10 in [2,4,5,7,9]): print("hon") elif n%10 == 3: print("bon") else: print("pon")
[["-", 0, 656, 0, 57, 75, 665, 15, 666, 0, 612], ["+", 0, 656, 0, 57, 75, 665, 15, 666, 0, 612]]
5
54
from sys import stdin N = stdin.readline().rstrip() if N[-1] == '3': ans = 'bon' elif N[-1] in [0, 1, 6, 8]: ans = 'pon' else: ans = 'hon' print(ans)
from sys import stdin N = stdin.readline().rstrip() if N[-1] == '3': ans = 'bon' elif N[-1] in ['0', '1', '6', '8']: ans = 'pon' else: ans = 'hon' print(ans)
[["+", 75, 665, 15, 666, 0, 634, 0, 557, 0, 654], ["+", 75, 665, 15, 666, 0, 634, 0, 557, 0, 655]]
5
64
n = input() n_ichi = n % 10 if n_ichi == 3: print('bon') elif n_ichi == 0 or n_ichi == 1 or n_ichi == 6 or n_ichi == 8: print('pon') else: print('hon')
n = input() n_ichi = int(n) % 10 if n_ichi == 3: print('bon') elif n_ichi == 0 or n_ichi == 1 or n_ichi == 6 or n_ichi == 8: print('pon') else: print('hon')
[["+", 0, 1, 0, 662, 12, 657, 31, 652, 63, 22], ["+", 0, 662, 12, 657, 31, 652, 3, 4, 0, 24], ["+", 0, 662, 12, 657, 31, 652, 3, 4, 0, 25]]
5
52
# coding: utf-8 import sys sr = lambda: sys.stdin.readline().rstrip() ir = lambda: int(sr()) lr = lambda: list(map(int, sr().split())) N = sr() if N == '3': answer = 'bon' elif N in '0168': answer = 'pon' else: answer = 'hon' print(answer)
# coding: utf-8 import sys sr = lambda: sys.stdin.readline().rstrip() ir = lambda: int(sr()) lr = lambda: list(map(int, sr().split())) N = sr()[-1] if N == '3': answer = 'bon' elif N in '0168': answer = 'pon' else: answer = 'hon' print(answer)
[["+", 0, 656, 0, 1, 0, 662, 12, 206, 0, 70], ["+", 0, 1, 0, 662, 12, 206, 206, 664, 17, 33], ["+", 0, 1, 0, 662, 12, 206, 206, 664, 28, 612], ["+", 0, 656, 0, 1, 0, 662, 12, 206, 0, 73]]
5
87
data=[["hon",2,4,5,9,7],["pon",0,1,6,8],["bon",3]] N=int(input())%10 for i in range(3): if N in data: print(data[i][0])
data=[["hon",2,4,5,9,7],["pon",0,1,6,8],["bon",3]] N=int(input())%10 for i in range(3): if N in data[i]: print(data[i][0])
[["+", 8, 196, 0, 57, 15, 666, 0, 206, 0, 70], ["+", 8, 196, 0, 57, 15, 666, 0, 206, 206, 22], ["+", 8, 196, 0, 57, 15, 666, 0, 206, 0, 73]]
5
74
n=int(input()) a=int(str(n)[-1]) print(a) if a==3: print("bon") elif a in [0,1,6,8]: print("pon") else: print("hon")
n=int(input()) a=int(str(n)[-1]) #print(a) if a==3: print("bon") elif a in [0,1,6,8]: print("pon") else: print("hon")
[["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
63
n = input() #print(n[-1]) nn = [0,1,6,8] if n[-1]=="3": print("bon") elif n[-1] in nn: print("pon") else: print("hon")
n = input() #print(n[-1]) nn = ["0","1","6","8"] if n[-1]=="3": print("bon") elif n[-1] in nn: print("pon") else: print("hon")
[["+", 0, 1, 0, 662, 12, 634, 0, 557, 0, 654], ["+", 0, 1, 0, 662, 12, 634, 0, 557, 0, 655]]
5
57
n=list(input())[::-1] if n[0]=="3": ans="bon" elif n[0]=="0" or n[0]=="1" or n[0]=="6" or n[0]=="8": ans="hon" else: ans="pon" print(ans)
n=list(input())[::-1] if n[0]=="3": ans="bon" elif n[0]=="0" or n[0]=="1" or n[0]=="6" or n[0]=="8": ans="pon" else: ans="hon" print(ans)
[["-", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["-", 8, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 8, 196, 0, 1, 0, 662, 12, 557, 0, 6]]
5
82
n=int(input())%10 if n in [2,4,5,7,8]: print("hon") elif n in[0,1,6,8]: print("pon") else: print("bon")
n=int(input())%10 if n in [2,4,5,7,9]: print("hon") elif n in[0,1,6,8]: print("pon") else: print("bon")
[["-", 0, 656, 0, 57, 15, 666, 0, 634, 0, 612], ["+", 0, 656, 0, 57, 15, 666, 0, 634, 0, 612]]
5
58
#include <bits/stdc++.h> using namespace std; using vi = vector<int>; using vii = vector<vi>; using vs = vector<string>; using in6 = int64_t; using ind = double; using pii = pair<int, int>; using psi = pair<string, int>; using vpi = vector<pii>; using vps = vector<psi>; #define rep(i, n) for (in6 i = 0; i < (in6)(n); i...
#include <bits/stdc++.h> using namespace std; using vi = vector<int>; using vii = vector<vi>; using vs = vector<string>; using in6 = int64_t; using ind = double; using pii = pair<int, int>; using psi = pair<string, int>; using vpi = vector<pii>; using vps = vector<psi>; #define rep(i, n) for (in6 i = 0; i < (in6)(n); i...
[["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
215
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); String str = "pon"; num = num % 10; if (num == 3) { str = "bon"; } else if (num == 0 || num == 1 || num == 6 || num == 8) { str = "h...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); String str = "hon"; num = num % 10; if (num == 3) { str = "bon"; } else if (num == 0 || num == 1 || num == 6 || num == 8) { str = "p...
[["-", 8, 196, 0, 503, 49, 200, 51, 5, 0, 491], ["+", 8, 196, 0, 503, 49, 200, 51, 5, 0, 491], ["-", 64, 196, 0, 1, 0, 11, 12, 5, 0, 491], ["+", 64, 196, 0, 1, 0, 11, 12, 5, 0, 491]]
3
107
#include <iostream> #include <stdio.h> using namespace std; int main() { int numInput; cin >> numInput; string res; if (numInput == 3) { res = "bon"; } else if (numInput == 0 || numInput == 1 || numInput == 6 || numInput == 8) { res = "pon"; } else { res = "hon"; } cout << res << endl...
#include <iostream> #include <stdio.h> using namespace std; int main() { int numInput; cin >> numInput; numInput = numInput % 10; string res; if (numInput == 3) { res = "bon"; } else if (numInput == 0 || numInput == 1 || numInput == 6 || numInput == 8) { res = "pon"; } else { res = "hon...
[["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
83
# -*- coding: utf-8 -*- """ Created on Mon May 18 14:53:59 2020 @author: 17664 """ yomi = {2:'hon', 4:'hon', 5:'hon', 7:'hon', 9:'hon', 0:'pon', 1:'pon', 6:'pon', 8:'pon', 3:'bon'} print(yomi[input()[-1]])
# -*- coding: utf-8 -*- """ Created on Mon May 18 14:53:59 2020 @author: 17664 """ yomi = {2:'hon', 4:'hon', 5:'hon', 7:'hon', 9:'hon', 0:'pon', 1:'pon', 6:'pon', 8:'pon', 3:'bon'} print(yomi[int(input()[-1])])
[["+", 0, 652, 3, 4, 0, 206, 206, 652, 63, 22], ["+", 3, 4, 0, 206, 206, 652, 3, 4, 0, 24], ["+", 3, 4, 0, 206, 206, 652, 3, 4, 0, 25]]
5
80
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(!cin.tie(0)); string s; cin >> s; int n; n = s.size(); char c = s.at(n - 1); if (s.at(n - 1) == '3') cout << "bon"; if (c == '0' || c == '1' || c == '6' || c == '8') cout << "pon"; else cout << "hon"; }
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(!cin.tie(0)); string s; cin >> s; int n; n = s.size(); char c = s.at(n - 1); if (s.at(n - 1) == '3') cout << "bon"; else if (c == '0' || c == '1' || c == '6' || c == '8') cout << "pon"; else cout << "hon"; }
[["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]]
1
115
n = gets.to_i n = n % 10 case n when 2,4,5,6,9 puts "hon" when 0,1,6,8 puts "pon" when 3 puts "bon" end
n = gets.to_i n = n % 10 case n when 2,4,5,7,9 puts "hon" when 0,1,6,8 puts "pon" when 3 puts "bon" end
[["-", 0, 493, 0, 173, 0, 763, 374, 374, 0, 612], ["+", 0, 493, 0, 173, 0, 763, 374, 374, 0, 612]]
4
45
a = input() b = a - a // 10 * 10 c = ("pon" if b == 0 else "pon" if b == 1 else "hon" if b == 2 else "bon" if b == 3 else "hon" if b == 4 else "hon" if b == 5 else "pon" if b == 6 else "hon" if b == 7 else "pon" if b == 8 else "hon" if b == 9 else "" ) print(c)
a = int(input()) b = a - a // 10 * 10 c = ("pon" if b == 0 else "pon" if b == 1 else "hon" if b == 2 else "bon" if b == 3 else "hon" if b == 4 else "hon" if b == 5 else "pon" if b == 6 else "hon" if b == 7 else "pon" if b == 8 else "hon" if b == 9 else "" ) print(c...
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
104
<?php $n = intval(trim(fgets(STDIN))); $m = $n % 10; if($n == 3)echo "bon"; elseif(in_array($n, [0,1,6,8])) echo "pon"; else echo "hon";
<?php $n = intval(trim(fgets(STDIN))); $m = $n % 10; if($m == 3)echo "bon"; elseif(in_array($m, [0,1,6,8])) echo "pon"; else echo "hon";
[["-", 0, 57, 15, 23, 0, 16, 31, 606, 0, 141], ["+", 0, 57, 15, 23, 0, 16, 31, 606, 0, 141], ["-", 0, 613, 3, 3, 0, 28, 0, 606, 0, 141], ["+", 0, 613, 3, 3, 0, 28, 0, 606, 0, 141]]
6
64
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <deque> #include <fstream> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <vector> #define IOS ...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <deque> #include <fstream> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <vector> #define IOS ...
[["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]]
1
202
#include <algorithm> #include <cstring> #include <iostream> #include <map> #include <queue> #include <stack> #include <string> #include <unordered_map> #include <vector> using namespace std; typedef long long ll; int main() { cin.sync_with_stdio(0); cin.tie(0); cout.tie(NULL); string s; cin >> s; if (s[s...
#include <algorithm> #include <cstring> #include <iostream> #include <map> #include <queue> #include <stack> #include <string> #include <unordered_map> #include <vector> using namespace std; typedef long long ll; int main() { cin.sync_with_stdio(0); cin.tie(0); cout.tie(NULL); string s; cin >> s; if (s[s...
[["-", 51, 16, 31, 16, 12, 16, 12, 103, 0, 125], ["+", 51, 16, 31, 16, 12, 16, 12, 103, 0, 125]]
1
176
#include <iostream> using namespace std; int main() { string str; cin >> str; char x = str[str.size() - 1]; if (x == '3') { cout << "bon" << endl; } else if (x == '0' || x == '6' || x == '1') { cout << "pon" << endl; } else cout << "hon" << endl; }
#include <iostream> using namespace std; int main() { string str; cin >> str; char x = str[str.size() - 1]; if (x == '3') { cout << "bon" << endl; } else if (x == '0' || x == '6' || x == '1' || x == '8') { cout << "pon" << endl; } else cout << "hon" << endl; }
[["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 104], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 125]]
1
91
n = input() #これはstr型 int(n) #これでint型に直す digit = n % 10 if digit == 3: print('bon') elif digit == 0 or digit == 1 or digit == 6 or digit == 8: print('pon') else: print('hon')
ninput = input() #これはstr型 n = int(ninput) #これでint型に直す digit = n % 10 if digit == 3: print('bon') elif digit == 0 or digit == 1 or digit == 6 or digit == 8: print('pon') else: print('hon')
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]]
5
58
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> vi; typedef pair<int, int> pii; typedef vector<pii> vii; #define F first #define S second #define sz(x) (int)x.size() #define db(x) cerr << #x << ": " << x << "\n"; int main() { ios::sync_with_stdio(false); cin.tie(0); stri...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> vi; typedef pair<int, int> pii; typedef vector<pii> vii; #define F first #define S second #define sz(x) (int)x.size() #define db(x) cerr << #x << ": " << x << "\n"; int main() { ios::sync_with_stdio(false); cin.tie(0); stri...
[["-", 31, 16, 31, 16, 31, 16, 12, 103, 0, 125], ["+", 31, 16, 31, 16, 31, 16, 12, 103, 0, 125]]
1
195
#include <iostream> #include <string> using namespace std; int main() { int n; cin >> n; string x = to_string(n); if (x[x.length() - 1] == '2' || x[x.length() - 1] == '4' || x[x.length() - 1] == '5' || x[x.length() - 1] == '7' || x[x.length() - 1] == '9') { cout << "hon" << endl; } if (x[...
#include <iostream> #include <string> using namespace std; int main() { int n; cin >> n; string x = to_string(n); if (x[x.length() - 1] == '2' || x[x.length() - 1] == '4' || x[x.length() - 1] == '5' || x[x.length() - 1] == '7' || x[x.length() - 1] == '9') { cout << "hon" << endl; } if (x...
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
218
#include <bits/stdc++.h> #define f(i, a, b) for (ll i = a; i < b; i++) #define af(i, a, b) for (ll i = a; i >= b; i--) #define rep(i, a, b, k) for (ll i = a; i < b; i += k) #define arep(i, a, b, k) for (ll i = a; i >= b; i -= k) #define ones(x) (ll) __builtin_popcount(x) #define fs first #define sc second #define pb p...
#include <bits/stdc++.h> #define f(i, a, b) for (ll i = a; i < b; i++) #define af(i, a, b) for (ll i = a; i >= b; i--) #define rep(i, a, b, k) for (ll i = a; i < b; i += k) #define arep(i, a, b, k) for (ll i = a; i >= b; i -= k) #define ones(x) (ll) __builtin_popcount(x) #define fs first #define sc second #define pb p...
[["-", 49, 50, 51, 16, 31, 69, 341, 342, 0, 13], ["+", 31, 69, 341, 342, 0, 16, 31, 2, 63, 22], ["+", 341, 342, 0, 16, 31, 2, 3, 4, 0, 24], ["+", 341, 342, 0, 16, 31, 2, 3, 4, 0, 22], ["+", 341, 342, 0, 16, 31, 2, 3, 4, 0, 25], ["+", 51, 16, 31, 69, 341, 342, 0, 16, 17, 33], ["+", 51, 16, 31, 69, 341, 342, 0, 16, 12, 1...
1
249
#include <bits/stdc++.h> using namespace std; using ll = long long; using ii = pair<int, int>; #define ff first #define ss second const int maxn = 1e5 + 10; int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); string n; cin >> n; if (n[n.size() - 1] == '3') { cout << "bon\n"; }...
#include <bits/stdc++.h> using namespace std; using ll = long long; using ii = pair<int, int>; #define ff first #define ss second const int maxn = 1e5 + 10; int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); string n; cin >> n; if (n[n.size() - 1] == '3') { cout << "bon\n"; }...
[["+", 31, 16, 31, 16, 31, 16, 12, 103, 0, 104], ["+", 31, 16, 31, 16, 12, 16, 12, 103, 0, 104], ["+", 51, 16, 31, 16, 12, 16, 12, 103, 0, 104], ["+", 15, 339, 51, 16, 12, 16, 12, 103, 0, 104]]
1
186
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; if (n / 10 == 3) cout << "bon" << endl; else if (n / 10 == 0 || n / 10 == 6 || n / 10 == 1 || n / 10 == 8) cout << "pon" << endl; else { cout << "hon" << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; if (n % 10 == 3) cout << "bon" << endl; else if (n % 10 == 0 || n % 10 == 6 || n % 10 == 1 || n % 10 == 8) cout << "pon" << endl; else { cout << "hon" << endl; } return 0; }
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 85], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["-", 31, 16, 31, 16, 31, 16, 31, 16, 17, 85], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 17, 109], ["-", 31, 16, 31, 16, 12, 16, 31, 16, 17, 85], ["+", 31, 16, 31, 16, 12, 16, 31, 16, 17, 109], ["-", 51, 16, 31, 16, 12, 16, 31, ...
1
84
n=input() if(n[-1] in [2,4,5,7,9]): print('hon') elif(n[-1] in [0,1,6,8]): print('pon') else: print('bon')
n=input() if(int(n[-1]) in [2,4,5,7,9]): print('hon') elif(int(n[-1]) in [0,1,6,8]): print('pon') else: print('bon')
[["+", 0, 57, 15, 23, 0, 666, 0, 652, 63, 22], ["+", 15, 23, 0, 666, 0, 652, 3, 4, 0, 24], ["+", 15, 23, 0, 666, 0, 652, 3, 4, 0, 25], ["+", 0, 656, 0, 57, 75, 665, 15, 23, 0, 24], ["+", 75, 665, 15, 23, 0, 666, 0, 652, 63, 22]]
5
65
n = gets.strip.split('').map(&:to_i) if n[-1] == 2 || n[-1] == 4 || n[-1] == 5 || n[-1] == 7 || n[-1] == 9 then p "hon" elsif n[-1] == 0 || n[-1] == 1 || n[-1] == 6 || n[-1] == 8 then p "pon" else p "bon" end
n = gets.chomp.split('').map(&:to_i) if n[-1] == 2 || n[-1] == 4 || n[-1] == 5 || n[-1] == 7 || n[-1] == 9 then puts "hon" elsif n[-1] == 0 || n[-1] == 1 || n[-1] == 6 || n[-1] == 8 then puts "pon" #pとputsは違う。pは"出力に""がつく。putsは""がつかない。 else puts "bon" end
[["-", 0, 662, 12, 652, 486, 652, 486, 652, 735, 22], ["+", 0, 662, 12, 652, 486, 652, 486, 652, 735, 22], ["-", 0, 493, 0, 121, 64, 749, 0, 652, 735, 22], ["+", 0, 493, 0, 121, 64, 749, 0, 652, 735, 22], ["-", 0, 121, 75, 759, 64, 749, 0, 652, 735, 22], ["+", 0, 121, 75, 759, 64, 749, 0, 652, 735, 22], ["-", 0, 121, 7...
4
105
#include <math.h> #include <stdio.h> #include <string.h> int main() { int n, i; scanf("%d", &n); n = n % 10; if (i == 3) { printf("bon\n"); } else if (n == 0 || n == 6 || n == 8 || n == 1) { printf("pon\n"); } else printf("hon\n"); return 0; }
#include <math.h> #include <stdio.h> #include <string.h> int main() { int n, i; scanf("%d", &n); n = n % 10; if (n == 3) { printf("bon\n"); } else if (n == 0 || n == 6 || n == 8 || n == 1) { printf("pon\n"); } else printf("hon\n"); return 0; }
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 31, 22]]
0
90
num = int(input()) honlist = [2,4,5,7,9] ponlist = [0,1,6,8] bonlist = [3] if num in honlist: print("hon") elif num in ponlist: print("pon") else: print("bon")
num = int(input())%10 honlist = [2,4,5,7,9] ponlist = [0,1,6,8] bonlist = [3] if num in honlist: print("hon") elif num in ponlist: print("pon") else: print("bon")
[["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 109], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]]
5
67
count = int(input()[-1]) if count == 2 or count == 4 or count == 5 or count == 7 or 9: print('hon') elif count == 3: print('bon') else: print('pon')
count = int(input()[-1]) if count == 2 or count == 4 or count == 5 or count == 7 or count == 9: print('hon') elif count == 3: print('bon') else: print('pon')
[["+", 0, 656, 0, 57, 15, 679, 12, 666, 0, 22], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 60]]
5
56
print('phhbhhphph'[int(input()[-1])] + 'on')
print('pphbhhphph'[int(input()[-1])]+'on')
[["-", 3, 4, 0, 657, 31, 206, 51, 557, 0, 6], ["+", 3, 4, 0, 657, 31, 206, 51, 557, 0, 6]]
5
22
# print('input >>') N = input() last = int(N[-1]) # print('-----output-----') if last == 2 or last == 4 or last == 5 or last == 7 or last == 9: print('hon') elif last == 0 or last == 1 or last == 6 or N == 8: print('pon') else: print('bon')
# print('input >>') N = input() last = int(N[-1]) # print('-----output-----') if last == 2 or last == 4 or last == 5 or last == 7 or last == 9: print('hon') elif last == 0 or last == 1 or last == 6 or last == 8: print('pon') elif last == 3: print('bon')
[["-", 0, 57, 75, 665, 15, 679, 12, 666, 0, 22], ["+", 0, 57, 75, 665, 15, 679, 12, 666, 0, 22], ["-", 36, 36, 0, 656, 0, 57, 75, 76, 0, 95], ["+", 36, 36, 0, 656, 0, 57, 75, 665, 0, 683], ["+", 0, 656, 0, 57, 75, 665, 15, 666, 0, 22], ["+", 0, 656, 0, 57, 75, 665, 15, 666, 667, 60], ["+", 0, 656, 0, 57, 75, 665, 15, 6...
5
75
#include <bits/stdc++.h> using namespace std; #define MOD 1000000007 int main() { int N; cin >> N; int r = N % 10; if (r == 3) cout << "bon" << endl; else if (r == 1 || r == 1 || r == 6 || r == 8) cout << "pon" << endl; else cout << "hon" << endl; }
#include <bits/stdc++.h> using namespace std; #define MOD 1000000007 int main() { int N; cin >> N; int r = N % 10; if (r == 3) cout << "bon" << endl; else if (r == 0 || r == 1 || r == 6 || r == 8) cout << "pon" << endl; else cout << "hon" << endl; }
[["-", 51, 16, 31, 16, 31, 16, 31, 16, 12, 13], ["+", 51, 16, 31, 16, 31, 16, 31, 16, 12, 13]]
1
79
N = int(input()) A = N % 10 if A == 3: print("bon") if A == 0 or A == 1 or A == 6 or A == 8: print("pon") else: print("hon")
N = int(input()) A = N % 10 if A == 3: print("bon") elif A == 0 or A == 1 or A == 6 or A == 8: print("pon") else: print("hon")
[["-", 36, 36, 36, 36, 0, 656, 0, 57, 0, 121], ["+", 36, 36, 0, 656, 0, 57, 75, 665, 0, 683]]
5
55
#include <bits/stdc++.h> using namespace std; const long long INF = 1000000000; typedef long long ll; #define writeln(n) cout << n << "\n" #define rep(i, n) for (int i = 0; i < (n); ++i) typedef pair<int, int> P; typedef pair<string, int> Psi; int main() { cin.tie(0); ios::sync_with_stdio(false); int n; c...
#include <bits/stdc++.h> using namespace std; const long long INF = 1000000000; typedef long long ll; #define writeln(n) cout << n << "\n" #define rep(i, n) for (int i = 0; i < (n); ++i) typedef pair<int, int> P; typedef pair<string, int> Psi; int main() { cin.tie(0); ios::sync_with_stdio(false); int n; c...
[["-", 15, 339, 51, 16, 31, 16, 31, 16, 17, 98], ["+", 15, 339, 51, 16, 31, 16, 31, 16, 17, 106], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 106], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 106]]
1
134
N = int(input()) if N%10 == '3': print('bon') elif N%10 in [0, 1, 6, 8]: print('pon') else: print('hon')
N = int(input()) if N%10 == 3: print('bon') elif N%10 in [0, 1, 6, 8]: print('pon') else: print('hon')
[["-", 0, 656, 0, 57, 15, 666, 0, 557, 0, 654], ["-", 0, 656, 0, 57, 15, 666, 0, 557, 0, 655]]
5
52
n = input() n = n[-1] if(n == 3): print("bon") elif(n == 0 or n == 1 or n == 6 or n == 8 ): print("pon") else: print("hon")
n = input() n = n[-1] n = int(n) if(n == 3): print("bon") elif(n == 0 or n == 1 or n == 6 or n == 8 ): print("pon") else: print("hon")
[["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
58
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String n = sc.next(); String end = n.substring(n.length() - 1); int num = Integer.parseInt(end); switch (num) { case 3: System.out.println("bon"); case 0: case ...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String n = sc.next(); String end = n.substring(n.length() - 1); int num = Integer.parseInt(end); switch (num) { case 3: System.out.println("bon"); break; case...
[["+", 0, 526, 8, 527, 0, 520, 0, 93, 0, 94], ["+", 0, 526, 8, 527, 0, 520, 0, 93, 0, 35], ["+", 0, 526, 8, 527, 0, 520, 0, 1, 0, 35]]
3
126
#include <bits/stdc++.h> using namespace std; typedef long long int ll; using Graph = vector<vector<int>>; int main() { ll N; if (N % 10 == 1 || N % 10 == 0 || N % 10 == 6 || N % 10 == 8) { cout << "pon" << endl; } else if (N % 10 == 3) { cout << "bon" << endl; } else { cout << "hon" << endl; } }...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; using Graph = vector<vector<int>>; int main() { ll N; cin >> N; if (N % 10 == 1 || N % 10 == 0 || N % 10 == 6 || N % 10 == 8) { cout << "pon" << endl; } else if (N % 10 == 3) { cout << "bon" << endl; } else { cout << "hon" <<...
[["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
98
N = input(int()) if (N%100)%10 == 3: print('bon') elif (N%100)%10 == 0 or (N%100)%10 ==1 or (N%100)%10 ==6 or (N%100)%10 ==8: print('pon') else: print('hon')
N = int(input()) if (N%100)%10 == 3: print('bon') elif (N%100)%10 == 0 or (N%100)%10 ==1 or (N%100)%10 ==6 or (N%100)%10 ==8: print('pon') else: print('hon')
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 662, 12, 652, 3, 4, 0, 652, 63, 22]]
5
80
#include <stdio.h> int main(void) { int N; scanf("%d", &N); N = N % 10; if (N == 3) printf("bon"); else if (N == 0 || N == 1 || N == 6 || N == 8) printf("pon"); else printf("bon"); return 0; }
#include <stdio.h> int main(void) { int N; scanf("%d", &N); N = N % 10; if (N == 3) printf("bon"); else { if (N == 0 || N == 1 || N == 6 || N == 8) printf("pon"); else printf("hon"); } return 0; }
[["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46]]
0
78
n=gets.chars[-1].to_i if n==3 puts "bon" elsif n==0 || n==1 || n==6 || n==8 puts "pon" else puts "hon" end
n=gets.chomp.chars[-1].to_i if n==3 puts "bon" elsif n==0 || n==1 || n==6 || n==8 puts "pon" else puts "hon" end
[["+", 12, 652, 486, 742, 500, 652, 486, 652, 735, 22], ["+", 0, 662, 12, 652, 486, 742, 500, 652, 17, 131]]
4
45
#pragma GCC optimize("O3") #include <bits/stdc++.h> using namespace std; #ifdef LOCAL #include <prettyprint.hpp> #define debug(...) cerr << "[" << #__VA_ARGS__ << "]: ", d_err(__VA_ARGS__); #else #define debug(...) 83; #endif void d_err() { cerr << endl; } template <typename H, typename... T> void d_err(H h, T......
#pragma GCC optimize("O3") #include <bits/stdc++.h> using namespace std; #ifdef LOCAL #include <prettyprint.hpp> #define debug(...) cerr << "[" << #__VA_ARGS__ << "]: ", d_err(__VA_ARGS__); #else #define debug(...) 83; #endif void d_err() { cerr << endl; } template <typename H, typename... T> void d_err(H h, T......
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
281
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int a = n & 10; if (a == 3) { cout << "bon" << endl; } else if (a == 0 || a == 1 || a == 6 || a == 8) { cout << "pon" << endl; } else { cout << "hon" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int a = n % 10; if (a == 3) { cout << "bon" << endl; } else if (a == 0 || a == 1 || a == 6 || a == 8) { cout << "pon" << endl; } else { cout << "hon" << endl; } }
[["-", 8, 9, 0, 43, 49, 50, 51, 16, 17, 67], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 109]]
1
82
n = input() if(n[-1] == "3"): print("bon") elif(n[-1] == "0","1","6","8"): print("pon") else: print("hon")
n = input() if(n[-1] == "3"): print("bon") elif(n[-1] in {"0","1","6","8"}): print("pon") else: print("hon")
[["-", 0, 57, 75, 665, 15, 660, 0, 666, 667, 60], ["+", 0, 57, 75, 665, 15, 23, 0, 666, 667, 267], ["+", 75, 665, 15, 23, 0, 666, 0, 282, 0, 45], ["+", 75, 665, 15, 23, 0, 666, 0, 282, 0, 46]]
5
63
a=input() s=str(a) if(s[-1] in ('2','4','5','7','9')): print('hon') elif(s[-1] in ('0','1','6','8')): print('pon') elif(s[-1]==3): print('bonn')
a=input() s = str(a) if(s[-1] in ('2','4','5','7','9')): print('hon') elif(s[-1] in ('0','1','6','8')): print('pon') elif(s[-1] == '3'): print('bon')
[["+", 75, 665, 15, 23, 0, 666, 0, 557, 0, 654], ["+", 75, 665, 15, 23, 0, 666, 0, 557, 0, 655], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
98
n = gets.chomp.split("").map(&:to_i) puts n if n.size == 3 if n[2] == 3 then puts "bon" elsif n[2] == 0 || n[2] == 1 || n[2] == 6 || n[2] == 8 then puts "pon" else puts "hon" end elsif n.size == 2 if n[1] == 3 then puts "bon" elsif n[1] == 0 || n[1] == 1 || n[1] =...
n = gets.chomp.split("").map(&:to_i) # puts n if n.size == 3 if n[2] == 3 then puts "bon" elsif n[2] == 0 || n[2] == 1 || n[2] == 6 || n[2] == 8 then puts "pon" else puts "hon" end elsif n.size == 2 if n[1] == 3 then puts "bon" elsif n[1] == 0 || n[1] == 1 || n[1]...
[["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["-", 36, 36, 0, 493, 0, 652, 3, 4, 0, 22]]
4
186
#include <iostream> using namespace std; int main() { int N, keta; cin >> N; switch (N % 10) { case 0: case 1: case 6: case 8: cout << "pon"; case 3: cout << "bon"; default: cout << "hon"; } }
#include <iostream> using namespace std; int main() { int N, keta; cin >> N; switch (N % 10) { case 0: case 1: case 6: case 8: cout << "pon"; break; case 3: cout << "bon"; break; default: cout << "hon"; break; } }
[["+", 0, 99, 8, 9, 0, 100, 0, 93, 0, 94], ["+", 0, 99, 8, 9, 0, 100, 0, 93, 0, 35], ["+", 0, 99, 8, 9, 0, 100, 0, 1, 0, 35]]
1
64
n = int(input()) n = n % 10 print(n) if n == 2 or n == 4 or n == 5 or n == 7 or n == 9: print('hon') elif n == 0 or n == 1 or n == 6 or n == 8: print('pon') elif n == 3: print('bon')
n = int(input()) n = n % 10 if n == 2 or n == 4 or n == 5 or n == 7 or n == 9: print('hon') elif n == 0 or n == 1 or n == 6 or n == 8: print('pon') elif n == 3: print('bon')
[["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
78
s = input() print(s) if (s[-1]=="2" or s[-1]=="4" or s[-1]=="5" or s[-1]=="7" or s[-1]=="9"): print("hon") elif (s[-1]=="0" or s[-1]=="1" or s[-1]=="6" or s[-1]=="8"): print("pon") else: print("bon")
s = input() if (s[-1]=="2" or s[-1]=="4" or s[-1]=="5" or s[-1]=="7" or s[-1]=="9"): print("hon") elif (s[-1]=="0" or s[-1]=="1" or s[-1]=="6" or s[-1]=="8"): print("pon") else: print("bon")
[["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]]
5
125
s = input() k = int(s[:-1]) if k == 3: print('bon') elif k in [0, 1, 6, 8]: print('pon') else: print('hon')
s = input() k = int(s[-1]) if k == 3: print('bon') elif k in [0, 1, 6, 8]: print('pon') else: print('hon')
[["-", 12, 652, 3, 4, 0, 206, 206, 663, 0, 102]]
5
54
N = input() hon = [2, 4, 5, 7, 9] pon = [0, 1, 6, 8] if int(N[::-1]) in hon: print("hon") elif int(N[-1]) in pon: print("pon") else: print("bon")
N = input() hon = [2, 4, 5, 7, 9] pon = [0, 1, 6, 8] if int(N[-1]) in hon: print("hon") elif int(N[-1]) in pon: print("pon") else: print("bon")
[["-", 0, 652, 3, 4, 0, 206, 206, 663, 0, 102]]
5
75
#include <iostream> using namespace std; int main() { int N, m; cin >> N; m = 1000 % N; if (m == 3) { cout << "bon"; } else if (m == 0 || m == 1 || m == 6 || m == 8) { cout << "pon"; } else { cout << "hon"; } return 0; }
#include <iostream> using namespace std; int main() { int N, m; cin >> N; m = N % 10; if (m == 3) { cout << "bon"; } else if (m == 0 || m == 1 || m == 6 || m == 8) { cout << "pon"; } else { cout << "hon"; } return 0; }
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 31, 13], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 109], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
80
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; if (N % 10 == 0 || N % 10 == 1 || N % 10 == 6 || N % 10 == 8) cout << "hon"; else if (N % 10 == 3) cout << "bon"; else cout << "pon"; cout << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; if (N % 10 == 0 || N % 10 == 1 || N % 10 == 6 || N % 10 == 8) cout << "pon"; else if (N % 10 == 3) cout << "bon"; else cout << "hon"; cout << endl; }
[["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
77
n = list(input()) for i,number in enumerate(n): print(i,number) if i == len(n) - 1: if number == "3": print('bon') elif number in list("0168"): print('pon') else: print('hon')
n = list(input()) for i,number in enumerate(n): if i == len(n) - 1: if number == "3": print('bon') elif number in list("0168"): print('pon') else: print('hon')
[["-", 0, 7, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 21], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]]
5
71
#include <stdio.h> int main(void) { int n; scanf("%d", &n); n = n % 10; if (n == 3) printf("bom"); else if (n == 0 || n == 1 || n == 6 || n == 8) printf("pos"); else printf("hon"); return (0); }
#include <stdio.h> int main(void) { int n; scanf("%d", &n); n = n % 10; if (n == 3) printf("bon"); else if (n == 0 || n == 1 || n == 6 || n == 8) printf("pon"); else printf("hon"); return (0); }
[["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
80